{"action":"opened","issue":{"url":"https://api.github.com/repos/timotheecour/Nim/issues/13","repository_url":"https://api.github.com/repos/timotheecour/Nim","labels_url":"https://api.github.com/repos/timotheecour/Nim/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/timotheecour/Nim/issues/13/comments","events_url":"https://api.github.com/repos/timotheecour/Nim/issues/13/events","html_url":"https://github.com/timotheecour/Nim/issues/13","id":464820342,"node_id":"MDU6SXNzdWU0NjQ4MjAzNDI=","number":13,"title":"reusing genSym symbol gives: `internal error: expr: param not init`","user":{"login":"timotheecour","id":2194784,"node_id":"MDQ6VXNlcjIxOTQ3ODQ=","avatar_url":"https://avatars2.githubusercontent.com/u/2194784?v=4","gravatar_id":"","url":"https://api.github.com/users/timotheecour","html_url":"https://github.com/timotheecour","followers_url":"https://api.github.com/users/timotheecour/followers","following_url":"https://api.github.com/users/timotheecour/following{/other_user}","gists_url":"https://api.github.com/users/timotheecour/gists{/gist_id}","starred_url":"https://api.github.com/users/timotheecour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timotheecour/subscriptions","organizations_url":"https://api.github.com/users/timotheecour/orgs","repos_url":"https://api.github.com/users/timotheecour/repos","events_url":"https://api.github.com/users/timotheecour/events{/privacy}","received_events_url":"https://api.github.com/users/timotheecour/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-07-06T05:37:53Z","updated_at":"2019-07-06T05:37:53Z","closed_at":null,"author_association":"OWNER","body":"```nim\r\n#[\r\nKEY BUG MINOR genSym ICE D20190705T223703:here\r\n\r\nError: internal error: expr: param not init x_416049\r\n]#\r\n\r\nimport std/macros\r\n\r\nmacro bar*(): untyped =\r\n  #[\r\n  BUG: reusing `x` instead of changing to `x2` gives error\r\n  ]#\r\n  let x = genSym(nskParam, \"x\")\r\n  result = quote do:\r\n    template fun1(`x`: int) = discard `x`\r\n    when defined(case_bug):\r\n      template fun2(`x`: int) = discard\r\n  echo result.repr\r\n\r\nbar()\r\nfun1(10)\r\n```\r\n"}}
{"actor":{"display_login":"timotheecour"}}