{"action":"created","issue":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5519","repository_url":"https://api.github.com/repos/HaxeFoundation/haxe","labels_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5519/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5519/comments","events_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5519/events","html_url":"https://github.com/HaxeFoundation/haxe/issues/5519","id":171076963,"number":5519,"title":"Call to `Void->Void` property does not compile","user":{"login":"RealyUniqueName","id":3155708,"avatar_url":"https://avatars.githubusercontent.com/u/3155708?v=3","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":1,"created_at":"2016-08-14T20:29:31Z","updated_at":"2016-08-14T20:41:07Z","closed_at":"2016-08-14T20:41:07Z","body":"Following sample compiles and works fine with 3.2.1, but fails to compile with latest 3.3\r\n```haxe\r\nclass Test {\r\n  var callbackProperty : Void->Void;\r\n  \r\n  static function main() {\r\n    var t = new Test();\r\n    trace(t.callbackProperty());\r\n  }\r\n  \r\n  function new () {}\r\n}\r\n```\r\nCompilation error:\r\n```\r\nTest.hx:6: characters 10-30 : Cannot use Void as value\r\n```\r\nSame error for static callback properties.\r\n\r\n[try-haxe 3.3](http://try-haxe.mrcdk.com/#E7135)\r\n[try-haxe 3.2.1](http://try.haxe.org/#DeB3D)"},"comment":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/comments/239695483","html_url":"https://github.com/HaxeFoundation/haxe/issues/5519#issuecomment-239695483","issue_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5519","id":239695483,"user":{"login":"Simn","id":634365,"avatar_url":"https://avatars.githubusercontent.com/u/634365?v=3","gravatar_id":"","url":"https://api.github.com/users/Simn","html_url":"https://github.com/Simn","followers_url":"https://api.github.com/users/Simn/followers","following_url":"https://api.github.com/users/Simn/following{/other_user}","gists_url":"https://api.github.com/users/Simn/gists{/gist_id}","starred_url":"https://api.github.com/users/Simn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Simn/subscriptions","organizations_url":"https://api.github.com/users/Simn/orgs","repos_url":"https://api.github.com/users/Simn/repos","events_url":"https://api.github.com/users/Simn/events{/privacy}","received_events_url":"https://api.github.com/users/Simn/received_events","type":"User","site_admin":false},"created_at":"2016-08-14T20:41:07Z","updated_at":"2016-08-14T20:41:07Z","body":"That's intended, you're trying to use the result of a Void-returning function as a value which is not a good idea."}}
{"actor":{"display_login":"Simn"}}