{"action":"created","issue":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/3722","labels_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/3722/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/3722/comments","events_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/3722/events","html_url":"https://github.com/HaxeFoundation/haxe/issues/3722","id":53100870,"number":3722,"title":"Extending native class with closure referencing this in ctor","user":{"login":"andyli","id":103977,"avatar_url":"https://avatars.githubusercontent.com/u/103977?v=3","gravatar_id":"","url":"https://api.github.com/users/andyli","html_url":"https://github.com/andyli","followers_url":"https://api.github.com/users/andyli/followers","following_url":"https://api.github.com/users/andyli/following{/other_user}","gists_url":"https://api.github.com/users/andyli/gists{/gist_id}","starred_url":"https://api.github.com/users/andyli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyli/subscriptions","organizations_url":"https://api.github.com/users/andyli/orgs","repos_url":"https://api.github.com/users/andyli/repos","events_url":"https://api.github.com/users/andyli/events{/privacy}","received_events_url":"https://api.github.com/users/andyli/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/HaxeFoundation/haxe/labels/platform-cs","name":"platform-cs","color":"bfe5bf"},{"url":"https://api.github.com/repos/HaxeFoundation/haxe/labels/platform-java","name":"platform-java","color":"009800"}],"state":"open","locked":false,"assignee":{"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},"milestone":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/milestones/1","labels_url":"https://api.github.com/repos/HaxeFoundation/haxe/milestones/1/labels","id":343008,"number":1,"title":"3.2","description":"","creator":{"login":"issuesbot","id":4543331,"avatar_url":"https://avatars.githubusercontent.com/u/4543331?v=3","gravatar_id":"","url":"https://api.github.com/users/issuesbot","html_url":"https://github.com/issuesbot","followers_url":"https://api.github.com/users/issuesbot/followers","following_url":"https://api.github.com/users/issuesbot/following{/other_user}","gists_url":"https://api.github.com/users/issuesbot/gists{/gist_id}","starred_url":"https://api.github.com/users/issuesbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/issuesbot/subscriptions","organizations_url":"https://api.github.com/users/issuesbot/orgs","repos_url":"https://api.github.com/users/issuesbot/repos","events_url":"https://api.github.com/users/issuesbot/events{/privacy}","received_events_url":"https://api.github.com/users/issuesbot/received_events","type":"User","site_admin":false},"open_issues":122,"closed_issues":339,"state":"open","created_at":"2013-05-28T03:42:24Z","updated_at":"2015-01-13T17:36:21Z","due_on":"2014-05-24T07:00:00Z","closed_at":null},"comments":3,"created_at":"2014-12-30T08:32:30Z","updated_at":"2015-01-13T18:02:22Z","closed_at":null,"body":"The following cannot be compiled to Java and C#:\r\n\r\n```haxe\r\n@:nativeGen class A {\r\n\tfunction new():Void {}\r\n}\r\n\r\nclass Test extends A {\r\n\tpublic function new():Void {\r\n\t\tsuper();\r\n\t\tvar fun = function (){\r\n\t\t\tthis;\r\n\t\t}\r\n\t}\r\n\tstatic function main():Void {\r\n\t\t\r\n\t}\r\n}\r\n```\r\n\r\nerror:\r\n```\r\nTest.hx:6: lines 6-11 : Types that derive from a native class must have its super() call as the first statement in the constructor\r\n```"},"comment":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/comments/69789151","html_url":"https://github.com/HaxeFoundation/haxe/issues/3722#issuecomment-69789151","issue_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/3722","id":69789151,"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":"2015-01-13T18:02:22Z","updated_at":"2015-01-13T18:02:22Z","body":"@waneck: Is this a necessary limitation?"}}