{"action":"closed","issue":{"url":"https://api.github.com/repos/HaxeFoundation/as3hx/issues/164","repository_url":"https://api.github.com/repos/HaxeFoundation/as3hx","labels_url":"https://api.github.com/repos/HaxeFoundation/as3hx/issues/164/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFoundation/as3hx/issues/164/comments","events_url":"https://api.github.com/repos/HaxeFoundation/as3hx/issues/164/events","html_url":"https://github.com/HaxeFoundation/as3hx/issues/164","id":171152843,"number":164,"title":"imports are not existing classes","user":{"login":"SlavaRa","id":1700940,"avatar_url":"https://avatars.githubusercontent.com/u/1700940?v=3","gravatar_id":"","url":"https://api.github.com/users/SlavaRa","html_url":"https://github.com/SlavaRa","followers_url":"https://api.github.com/users/SlavaRa/followers","following_url":"https://api.github.com/users/SlavaRa/following{/other_user}","gists_url":"https://api.github.com/users/SlavaRa/gists{/gist_id}","starred_url":"https://api.github.com/users/SlavaRa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SlavaRa/subscriptions","organizations_url":"https://api.github.com/users/SlavaRa/orgs","repos_url":"https://api.github.com/users/SlavaRa/repos","events_url":"https://api.github.com/users/SlavaRa/events{/privacy}","received_events_url":"https://api.github.com/users/SlavaRa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/HaxeFoundation/as3hx/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-15T11:23:46Z","updated_at":"2016-08-27T10:33:10Z","closed_at":"2016-08-27T10:33:10Z","body":"as3 code for example:\r\n```actionscript\r\npackage {\r\n    import flash.display.DisplayObject;\r\n    public class Issue164 {\r\n        public function Issue164(rootClass:Class) {\r\n            var d:DisplayObject = new rootClass() as DisplayObject;\r\n        }\r\n    }\r\n}\r\n```\r\n\r\nresult:\r\n```haxe\r\nimport RootClass;                                                                                                 \r\nimport flash.display.DisplayObject;                                                                               \r\n                                                                                                                  \r\nclass Issue164                                                                                                    \r\n{                                                                                                                 \r\n    public function new(rootClass : Class<Dynamic>)                                                               \r\n    {                                                                                                             \r\n        var d : DisplayObject = try cast(Type.createInstance(rootClass, []), DisplayObject) catch(e:Dynamic) null;\r\n    }                                                                                                             \r\n}                                                                                                                 \r\n```\r\n\r\nexpected result:\r\n```haxe\r\nimport flash.display.DisplayObject;                                                                               \r\n                                                                                                                  \r\nclass Issue164                                                                                                    \r\n{                                                                                                                 \r\n    public function new(rootClass : Class<Dynamic>)                                                               \r\n    {                                                                                                             \r\n        var d : DisplayObject = try cast(Type.createInstance(rootClass, []), DisplayObject) catch(e:Dynamic) null;\r\n    }                                                                                                             \r\n}   \r\n```"}}
{"actor":{"display_login":"SlavaRa"}}