{"action":"created","issue":{"url":"https://api.github.com/repos/nim-lang/Nim/issues/4973","repository_url":"https://api.github.com/repos/nim-lang/Nim","labels_url":"https://api.github.com/repos/nim-lang/Nim/issues/4973/labels{/name}","comments_url":"https://api.github.com/repos/nim-lang/Nim/issues/4973/comments","events_url":"https://api.github.com/repos/nim-lang/Nim/issues/4973/events","html_url":"https://github.com/nim-lang/Nim/issues/4973","id":186248479,"number":4973,"title":"Type inferring templates do not work with non-ref types.","user":{"login":"endragor","id":2417849,"avatar_url":"https://avatars.githubusercontent.com/u/2417849?v=3","gravatar_id":"","url":"https://api.github.com/users/endragor","html_url":"https://github.com/endragor","followers_url":"https://api.github.com/users/endragor/followers","following_url":"https://api.github.com/users/endragor/following{/other_user}","gists_url":"https://api.github.com/users/endragor/gists{/gist_id}","starred_url":"https://api.github.com/users/endragor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endragor/subscriptions","organizations_url":"https://api.github.com/users/endragor/orgs","repos_url":"https://api.github.com/users/endragor/repos","events_url":"https://api.github.com/users/endragor/events{/privacy}","received_events_url":"https://api.github.com/users/endragor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-31T10:18:48Z","updated_at":"2016-10-31T23:56:16Z","closed_at":null,"body":"Sample:\r\n```nim\r\nimport sequtils\r\n\r\ntype\r\n  SomeObj = object\r\n  OtherObj = object\r\n    field: SomeObj\r\n\r\nlet aSeq = @[OtherObj(field: SomeObj())]\r\nlet someObjSeq = aSeq.mapIt(it.field)\r\n# Error: type mismatch: got (SomeObj) but expected 'outType = object'\r\n```\r\nThis sample works if `SomeObj` is defined as: `SomeObj = ref object`.\r\n\r\nNim Git hash: 0f3419685fecc554f6ce28dee3e4630480358c3b"},"comment":{"url":"https://api.github.com/repos/nim-lang/Nim/issues/comments/257454376","html_url":"https://github.com/nim-lang/Nim/issues/4973#issuecomment-257454376","issue_url":"https://api.github.com/repos/nim-lang/Nim/issues/4973","id":257454376,"user":{"login":"johnnovak","id":698770,"avatar_url":"https://avatars.githubusercontent.com/u/698770?v=3","gravatar_id":"","url":"https://api.github.com/users/johnnovak","html_url":"https://github.com/johnnovak","followers_url":"https://api.github.com/users/johnnovak/followers","following_url":"https://api.github.com/users/johnnovak/following{/other_user}","gists_url":"https://api.github.com/users/johnnovak/gists{/gist_id}","starred_url":"https://api.github.com/users/johnnovak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnnovak/subscriptions","organizations_url":"https://api.github.com/users/johnnovak/orgs","repos_url":"https://api.github.com/users/johnnovak/repos","events_url":"https://api.github.com/users/johnnovak/events{/privacy}","received_events_url":"https://api.github.com/users/johnnovak/received_events","type":"User","site_admin":false},"created_at":"2016-10-31T23:56:16Z","updated_at":"2016-10-31T23:56:16Z","body":"Maybe related to https://github.com/nim-lang/Nim/issues/4798?"}}
{"actor":{"display_login":"johnnovak"}}