{"action":"closed","issue":{"url":"https://api.github.com/repos/andyfriesen/crux/issues/37","labels_url":"https://api.github.com/repos/andyfriesen/crux/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/andyfriesen/crux/issues/37/comments","events_url":"https://api.github.com/repos/andyfriesen/crux/issues/37/events","html_url":"https://github.com/andyfriesen/crux/issues/37","id":119887271,"number":37,"title":"methods and for loops don't work together","user":{"login":"chadaustin","id":59987,"avatar_url":"https://avatars.githubusercontent.com/u/59987?v=3","gravatar_id":"","url":"https://api.github.com/users/chadaustin","html_url":"https://github.com/chadaustin","followers_url":"https://api.github.com/users/chadaustin/followers","following_url":"https://api.github.com/users/chadaustin/following{/other_user}","gists_url":"https://api.github.com/users/chadaustin/gists{/gist_id}","starred_url":"https://api.github.com/users/chadaustin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chadaustin/subscriptions","organizations_url":"https://api.github.com/users/chadaustin/orgs","repos_url":"https://api.github.com/users/chadaustin/repos","events_url":"https://api.github.com/users/chadaustin/events{/privacy}","received_events_url":"https://api.github.com/users/chadaustin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-02T07:55:08Z","updated_at":"2015-12-05T01:32:44Z","closed_at":"2015-12-05T01:32:44Z","body":"```\r\nfun handleFoldersRequest(response, root) {\r\n    let rv = [];\r\n    let contents: Array String = fs.readdirSync(root);\r\n\r\n    for name in contents {\r\n        if name->endswith(\".jpeg\") {\r\n        };\r\n    };\r\n}\r\n```\r\n\r\nThis fails with:\r\n\r\n```\r\ncrux: TDNR 34,12\r\n\t(TUnbound 42)\r\n```\r\n\r\nI get a similar error with:\r\n\r\n```\r\n    each(contents, fun(name: String) {\r\n        rv->append(name);\r\n    });\r\n```\r\n\r\n```\r\ncrux: Unification error at 44,20\r\n\tTQuant 21\r\n\tString\r\n```\r\n"}}