{"action":"opened","issue":{"url":"https://api.github.com/repos/nim-lang/Nim/issues/3174","labels_url":"https://api.github.com/repos/nim-lang/Nim/issues/3174/labels{/name}","comments_url":"https://api.github.com/repos/nim-lang/Nim/issues/3174/comments","events_url":"https://api.github.com/repos/nim-lang/Nim/issues/3174/events","html_url":"https://github.com/nim-lang/Nim/issues/3174","id":98605201,"number":3174,"title":"Function type aliases with generics lead to codegen errors","user":{"login":"zielmicha","id":364357,"avatar_url":"https://avatars.githubusercontent.com/u/364357?v=3","gravatar_id":"","url":"https://api.github.com/users/zielmicha","html_url":"https://github.com/zielmicha","followers_url":"https://api.github.com/users/zielmicha/followers","following_url":"https://api.github.com/users/zielmicha/following{/other_user}","gists_url":"https://api.github.com/users/zielmicha/gists{/gist_id}","starred_url":"https://api.github.com/users/zielmicha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zielmicha/subscriptions","organizations_url":"https://api.github.com/users/zielmicha/orgs","repos_url":"https://api.github.com/users/zielmicha/repos","events_url":"https://api.github.com/users/zielmicha/events{/privacy}","received_events_url":"https://api.github.com/users/zielmicha/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-02T12:00:40Z","updated_at":"2015-08-02T12:00:40Z","closed_at":null,"body":"```\r\ntype\r\n  Foo[T] = (proc(): T {.closure.})\r\n\r\nlet a: Foo[int] = (proc(): int = 5)\r\ndiscard a()\r\n```\r\n`nim c --parallelBuild:1 a.nim`:\r\n```\r\n/home/michal/apps/nim/nimcache/compiler_a.c: In function ‘aInit000’:\r\n/home/michal/apps/nim/nimcache/compiler_a.c:314:16: error: called object ‘a_92024’ is not a function or function pointer\r\n  LOC2 = a_92024();\r\n                ^\r\n/home/michal/apps/nim/nimcache/compiler_a.c:171:10: note: declared here\r\n Foo92017 a_92024;\r\n```"}}