{"action":"closed","issue":{"url":"https://api.github.com/repos/zero-functional/zero-functional/issues/36","repository_url":"https://api.github.com/repos/zero-functional/zero-functional","labels_url":"https://api.github.com/repos/zero-functional/zero-functional/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/zero-functional/zero-functional/issues/36/comments","events_url":"https://api.github.com/repos/zero-functional/zero-functional/issues/36/events","html_url":"https://github.com/zero-functional/zero-functional/issues/36","id":346823452,"node_id":"MDU6SXNzdWUzNDY4MjM0NTI=","number":36,"title":"createIter can't be fed to a proc: zero_functional.nim(1675, 16)  Error: internal error: proc has no result symbol","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":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":22,"created_at":"2018-08-02T01:12:10Z","updated_at":"2018-09-08T11:11:12Z","closed_at":"2018-09-08T11:11:12Z","author_association":"CONTRIBUTOR","body":"```nim\r\nimport zero_functional\r\nimport strutils\r\n\r\nwhen defined(case1):\r\n  # error: /Users/timothee/.nimble/pkgs/zero_functional-#head/zero_functional.nim(1675, 16) Error: internal error: proc has no result symbol\r\n  #    iterNode = quote:\r\n  proc bar[T](a:T)=\r\n    echo \"in bar\"\r\n    for si in a():\r\n      echo si\r\n\r\nwhen defined(case2):\r\n  # error\r\n  proc bar[T](a:iterator: T {.inline.})=\r\n    echo \"in bar\"\r\n    for si in a():\r\n      echo si\r\n\r\nwhen defined(case3):\r\n  # error\r\n  proc bar(a:iterator: string {.inline.})=\r\n    echo \"in bar\"\r\n    for si in a():\r\n      echo si\r\n\r\nwhen defined(case4):\r\n  # works\r\n  template bar[T](a:T)=\r\n    echo \"in bar\"\r\n    for si in a():\r\n      echo si\r\n\r\nproc test()=\r\n  lines(stdin) --> map(it.toUpper()) --> createIter(s)\r\n\r\n  # BUG\r\n  bar(s)\r\n\r\n  # ok\r\n  for si in s(): echo si\r\n\r\ntest()\r\n```\r\n"}}
{"actor":{"display_login":"michael72"}}