{"action":"closed","issue":{"url":"https://api.github.com/repos/nim-lang/Nim/issues/3359","labels_url":"https://api.github.com/repos/nim-lang/Nim/issues/3359/labels{/name}","comments_url":"https://api.github.com/repos/nim-lang/Nim/issues/3359/comments","events_url":"https://api.github.com/repos/nim-lang/Nim/issues/3359/events","html_url":"https://github.com/nim-lang/Nim/issues/3359","id":107671000,"number":3359,"title":"unittest crashes compiler","user":{"login":"vegansk","id":2908508,"avatar_url":"https://avatars.githubusercontent.com/u/2908508?v=3","gravatar_id":"","url":"https://api.github.com/users/vegansk","html_url":"https://github.com/vegansk","followers_url":"https://api.github.com/users/vegansk/followers","following_url":"https://api.github.com/users/vegansk/following{/other_user}","gists_url":"https://api.github.com/users/vegansk/gists{/gist_id}","starred_url":"https://api.github.com/users/vegansk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vegansk/subscriptions","organizations_url":"https://api.github.com/users/vegansk/orgs","repos_url":"https://api.github.com/users/vegansk/repos","events_url":"https://api.github.com/users/vegansk/events{/privacy}","received_events_url":"https://api.github.com/users/vegansk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-22T08:56:23Z","updated_at":"2015-09-23T20:50:00Z","closed_at":"2015-09-23T20:50:00Z","body":"Compiler crashes on this test case:\r\n\r\n```nimrod\r\nimport future, unittest\r\n\r\nproc runF2[T](x: T, y: T, f: (T, T) -> T): T =\r\n  f(x, y)\r\n\r\nsuite \"Test\":\r\n\r\n  test: \"Test\":\r\n    check: runF2(1, 2, (x, y) => x + y) == 3\r\n```\r\n\r\nStacktrace:\r\n```\r\nError: internal error: (filename: evaltempl.nim, line: 93)\r\nTraceback (most recent call last)\r\nnim.nim(104)             nim\r\nnim.nim(68)              handleCmdLine\r\nmain.nim(251)            mainCommand\r\nmain.nim(63)             commandCompileToC\r\nmodules.nim(214)         compileProject\r\nmodules.nim(162)         compileModule\r\npasses.nim(203)          processModule\r\npasses.nim(137)          processTopLevelStmt\r\nsem.nim(458)             myProcess\r\nsem.nim(432)             semStmtAndGenerateGenerics\r\nsemstmts.nim(1475)       semStmt\r\nsemexprs.nim(910)        semExprNoType\r\nsemexprs.nim(2191)       semExpr\r\nsemexprs.nim(19)         semTemplateExpr\r\nsem.nim(337)             semAfterMacroCall\r\nsemstmts.nim(1475)       semStmt\r\nsemexprs.nim(910)        semExprNoType\r\nsemexprs.nim(2282)       semExpr\r\nsemstmts.nim(1429)       semStmtList\r\nsemexprs.nim(2281)       semExpr\r\nsemexprs.nim(2049)       semBlock\r\nsemexprs.nim(2282)       semExpr\r\nsemstmts.nim(1429)       semStmtList\r\nsemexprs.nim(2282)       semExpr\r\nsemstmts.nim(1429)       semStmtList\r\nsemexprs.nim(2191)       semExpr\r\nsemexprs.nim(18)         semTemplateExpr\r\nevaltempl.nim(114)       evalTemplate\r\nmsgs.nim(975)            evalTemplateArgs\r\nmsgs.nim(968)            internalError\r\nmsgs.nim(872)            rawMessage\r\nmsgs.nim(869)            rawMessage\r\nmsgs.nim(802)            handleError\r\nFAILURE\r\n```"}}