{"action":"created","issue":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/6511","repository_url":"https://api.github.com/repos/HaxeFoundation/haxe","labels_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/6511/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/6511/comments","events_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/6511/events","html_url":"https://github.com/HaxeFoundation/haxe/issues/6511","id":249880139,"number":6511,"title":"[Lua] Cast namespace is not getting flattened","user":{"login":"gerardsmit","id":2109929,"avatar_url":"https://avatars2.githubusercontent.com/u/2109929?v=4","gravatar_id":"","url":"https://api.github.com/users/gerardsmit","html_url":"https://github.com/gerardsmit","followers_url":"https://api.github.com/users/gerardsmit/followers","following_url":"https://api.github.com/users/gerardsmit/following{/other_user}","gists_url":"https://api.github.com/users/gerardsmit/gists{/gist_id}","starred_url":"https://api.github.com/users/gerardsmit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gerardsmit/subscriptions","organizations_url":"https://api.github.com/users/gerardsmit/orgs","repos_url":"https://api.github.com/users/gerardsmit/repos","events_url":"https://api.github.com/users/gerardsmit/events{/privacy}","received_events_url":"https://api.github.com/users/gerardsmit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-13T15:23:27Z","updated_at":"2017-08-13T15:24:49Z","closed_at":null,"body":"Since MR #6313 the namespaces are getting flattened, however doing a cast:\r\n\r\n```haxe\r\nimport example.Class;\r\n\r\ncast(VAR, Class);\r\n```\r\nresults into\r\n```lua\r\n__lua_Boot.__cast(VAR, example.Class);\r\n```\r\n\r\nwhich is not flattened thus Lua complains:  `attempt to index global 'example' (a nil value)`"},"comment":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/comments/322048480","html_url":"https://github.com/HaxeFoundation/haxe/issues/6511#issuecomment-322048480","issue_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/6511","id":322048480,"user":{"login":"gerardsmit","id":2109929,"avatar_url":"https://avatars2.githubusercontent.com/u/2109929?v=4","gravatar_id":"","url":"https://api.github.com/users/gerardsmit","html_url":"https://github.com/gerardsmit","followers_url":"https://api.github.com/users/gerardsmit/followers","following_url":"https://api.github.com/users/gerardsmit/following{/other_user}","gists_url":"https://api.github.com/users/gerardsmit/gists{/gist_id}","starred_url":"https://api.github.com/users/gerardsmit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gerardsmit/subscriptions","organizations_url":"https://api.github.com/users/gerardsmit/orgs","repos_url":"https://api.github.com/users/gerardsmit/repos","events_url":"https://api.github.com/users/gerardsmit/events{/privacy}","received_events_url":"https://api.github.com/users/gerardsmit/received_events","type":"User","site_admin":false},"created_at":"2017-08-13T15:24:49Z","updated_at":"2017-08-13T15:24:49Z","body":"In addition, the class in my project is an extern class. Maybe this causes the issue."}}
{"actor":{"display_login":"gerardsmit"}}