{"action":"created","issue":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/7373","repository_url":"https://api.github.com/repos/HaxeFoundation/haxe","labels_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/7373/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/7373/comments","events_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/7373/events","html_url":"https://github.com/HaxeFoundation/haxe/issues/7373","id":355355699,"node_id":"MDU6SXNzdWUzNTUzNTU2OTk=","number":7373,"title":"New function type: invalid parsing of a function returning another function","user":{"login":"RealyUniqueName","id":3155708,"node_id":"MDQ6VXNlcjMxNTU3MDg=","avatar_url":"https://avatars0.githubusercontent.com/u/3155708?v=4","gravatar_id":"","url":"https://api.github.com/users/RealyUniqueName","html_url":"https://github.com/RealyUniqueName","followers_url":"https://api.github.com/users/RealyUniqueName/followers","following_url":"https://api.github.com/users/RealyUniqueName/following{/other_user}","gists_url":"https://api.github.com/users/RealyUniqueName/gists{/gist_id}","starred_url":"https://api.github.com/users/RealyUniqueName/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RealyUniqueName/subscriptions","organizations_url":"https://api.github.com/users/RealyUniqueName/orgs","repos_url":"https://api.github.com/users/RealyUniqueName/repos","events_url":"https://api.github.com/users/RealyUniqueName/events{/privacy}","received_events_url":"https://api.github.com/users/RealyUniqueName/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-08-29T22:23:36Z","updated_at":"2018-09-26T08:00:12Z","closed_at":"2018-09-25T19:25:54Z","author_association":"MEMBER","body":"```haxe\r\nclass Test {\r\n    static function main() {\r\n      var fn:(i:Int)->(i1:Int, i2:Int)->Void = i -> { //Test.hx:3: characters 26-27 : Unexpected :\r\n        trace(i);\r\n        return (i1, i2) -> {\r\n          trace(i1, i2);\r\n        }\r\n      }\r\n      fn(1)(2, 3);\r\n    }\r\n}\r\n```\r\nLatest dev Haxe.\r\nhttp://try-haxe.mrcdk.com/#b2151"},"comment":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/comments/424622637","html_url":"https://github.com/HaxeFoundation/haxe/issues/7373#issuecomment-424622637","issue_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/7373","id":424622637,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDYyMjYzNw==","user":{"login":"back2dos","id":509501,"node_id":"MDQ6VXNlcjUwOTUwMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/509501?v=4","gravatar_id":"","url":"https://api.github.com/users/back2dos","html_url":"https://github.com/back2dos","followers_url":"https://api.github.com/users/back2dos/followers","following_url":"https://api.github.com/users/back2dos/following{/other_user}","gists_url":"https://api.github.com/users/back2dos/gists{/gist_id}","starred_url":"https://api.github.com/users/back2dos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/back2dos/subscriptions","organizations_url":"https://api.github.com/users/back2dos/orgs","repos_url":"https://api.github.com/users/back2dos/repos","events_url":"https://api.github.com/users/back2dos/events{/privacy}","received_events_url":"https://api.github.com/users/back2dos/received_events","type":"User","site_admin":false},"created_at":"2018-09-26T08:00:12Z","updated_at":"2018-09-26T08:00:12Z","author_association":"MEMBER","body":"Yes parens would be great (I had to look at the value to decipher what is meant), but I don't get why this doesn't parse. Added the new function type syntax to hscript and it parses just fine: https://github.com/back2dos/hscript/commit/a423ca9e576119f33bfbcbb5d49aff77aa91a23d#diff-c8c04dd1a23f6387728711c5dce61f28R110\r\n\r\nPerhaps there's something I'm not getting, but there shouldn't be an error at the position where it is now, because after the first `->` we know that next up is a ComplexType and that therefore a function (new style or old) must be allowed."}}
{"actor":{"display_login":"back2dos"}}