{"action":"closed","issue":{"url":"https://api.github.com/repos/Araq/Nim/issues/2414","labels_url":"https://api.github.com/repos/Araq/Nim/issues/2414/labels{/name}","comments_url":"https://api.github.com/repos/Araq/Nim/issues/2414/comments","events_url":"https://api.github.com/repos/Araq/Nim/issues/2414/events","html_url":"https://github.com/Araq/Nim/issues/2414","id":64543673,"number":2414,"title":"No overloading resolution with deprecated procs","user":{"login":"def-","id":2335377,"avatar_url":"https://avatars.githubusercontent.com/u/2335377?v=3","gravatar_id":"","url":"https://api.github.com/users/def-","html_url":"https://github.com/def-","followers_url":"https://api.github.com/users/def-/followers","following_url":"https://api.github.com/users/def-/following{/other_user}","gists_url":"https://api.github.com/users/def-/gists{/gist_id}","starred_url":"https://api.github.com/users/def-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/def-/subscriptions","organizations_url":"https://api.github.com/users/def-/orgs","repos_url":"https://api.github.com/users/def-/repos","events_url":"https://api.github.com/users/def-/events{/privacy}","received_events_url":"https://api.github.com/users/def-/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Araq/Nim/labels/Feature","name":"Feature","color":"0080f0"},{"url":"https://api.github.com/repos/Araq/Nim/labels/Low%20Priority","name":"Low Priority","color":"4ed600"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-26T14:44:22Z","updated_at":"2015-03-27T18:32:45Z","closed_at":"2015-03-27T18:32:45Z","body":"```nimrod\r\ntype F = object\r\n  x: int\r\n\r\nproc `[]`(f: F, y: int): int = f.x\r\nproc `[]`(f: var F, y: int): var int = f.x\r\n\r\n{.deprecated: [mget: `[]`].}\r\n\r\nvar f: F\r\ninc f.mget(0)\r\n```\r\n```\r\nmin.nim(10, 6) Warning: use [] instead; mget is deprecated [Deprecated]\r\nmin.nim(10, 6) Warning: use [] instead; mget is deprecated [Deprecated]\r\nmin.nim(10, 4) Error: type mismatch: got (int)\r\nbut expected one of: \r\nsystem.inc(x: var T, y: int)\r\n```\r\nShould call the second `[]` instead."}}