{"action":"created","issue":{"url":"https://api.github.com/repos/nim-lang/Nim/issues/7857","repository_url":"https://api.github.com/repos/nim-lang/Nim","labels_url":"https://api.github.com/repos/nim-lang/Nim/issues/7857/labels{/name}","comments_url":"https://api.github.com/repos/nim-lang/Nim/issues/7857/comments","events_url":"https://api.github.com/repos/nim-lang/Nim/issues/7857/events","html_url":"https://github.com/nim-lang/Nim/issues/7857","id":325086298,"number":7857,"title":"Macro with name `on` unexpected behaviour","user":{"login":"coffeepots","id":12612616,"avatar_url":"https://avatars0.githubusercontent.com/u/12612616?v=4","gravatar_id":"","url":"https://api.github.com/users/coffeepots","html_url":"https://github.com/coffeepots","followers_url":"https://api.github.com/users/coffeepots/followers","following_url":"https://api.github.com/users/coffeepots/following{/other_user}","gists_url":"https://api.github.com/users/coffeepots/gists{/gist_id}","starred_url":"https://api.github.com/users/coffeepots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coffeepots/subscriptions","organizations_url":"https://api.github.com/users/coffeepots/orgs","repos_url":"https://api.github.com/users/coffeepots/repos","events_url":"https://api.github.com/users/coffeepots/events{/privacy}","received_events_url":"https://api.github.com/users/coffeepots/received_events","type":"User","site_admin":false},"labels":[{"id":630466093,"url":"https://api.github.com/repos/nim-lang/Nim/labels/Macros","name":"Macros","color":"e8b66d","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-21T23:00:57Z","updated_at":"2018-05-22T11:10:31Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Module A:\r\n```\r\nmacro ona*(body: untyped): untyped =\r\n  discard\r\n\r\nmacro on*(body: untyped): untyped =\r\n  discard\r\n```\r\n\r\nModule B:\r\n```\r\nimport modulea\r\n\r\nona:\r\n  echo \"a\" # no problem\r\n\r\non:\r\n  echo \"b\" # Error: expression 'echo [\"b\"]' has no type (or is ambiguous)\r\n```\r\n\r\nChanging the name of the macro from `on` fixes the problem."},"comment":{"url":"https://api.github.com/repos/nim-lang/Nim/issues/comments/390952642","html_url":"https://github.com/nim-lang/Nim/issues/7857#issuecomment-390952642","issue_url":"https://api.github.com/repos/nim-lang/Nim/issues/7857","id":390952642,"user":{"login":"Araq","id":287816,"avatar_url":"https://avatars1.githubusercontent.com/u/287816?v=4","gravatar_id":"","url":"https://api.github.com/users/Araq","html_url":"https://github.com/Araq","followers_url":"https://api.github.com/users/Araq/followers","following_url":"https://api.github.com/users/Araq/following{/other_user}","gists_url":"https://api.github.com/users/Araq/gists{/gist_id}","starred_url":"https://api.github.com/users/Araq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Araq/subscriptions","organizations_url":"https://api.github.com/users/Araq/orgs","repos_url":"https://api.github.com/users/Araq/repos","events_url":"https://api.github.com/users/Araq/events{/privacy}","received_events_url":"https://api.github.com/users/Araq/received_events","type":"User","site_admin":false},"created_at":"2018-05-22T11:10:31Z","updated_at":"2018-05-22T11:10:31Z","author_association":"MEMBER","body":"Yeah, but I wonder why overloading resolution picks up ``consts``. :-)"}}
{"actor":{"display_login":"Araq"}}