{"action":"created","issue":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4063","labels_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4063/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4063/comments","events_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4063/events","html_url":"https://github.com/HaxeFoundation/haxe/issues/4063","id":63229690,"number":4063,"title":"Unconsistent #if macro #else in Display mod","user":{"login":"sebpatu","id":4526806,"avatar_url":"https://avatars.githubusercontent.com/u/4526806?v=3","gravatar_id":"","url":"https://api.github.com/users/sebpatu","html_url":"https://github.com/sebpatu","followers_url":"https://api.github.com/users/sebpatu/followers","following_url":"https://api.github.com/users/sebpatu/following{/other_user}","gists_url":"https://api.github.com/users/sebpatu/gists{/gist_id}","starred_url":"https://api.github.com/users/sebpatu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebpatu/subscriptions","organizations_url":"https://api.github.com/users/sebpatu/orgs","repos_url":"https://api.github.com/users/sebpatu/repos","events_url":"https://api.github.com/users/sebpatu/events{/privacy}","received_events_url":"https://api.github.com/users/sebpatu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-20T13:32:50Z","updated_at":"2015-03-20T13:36:29Z","closed_at":null,"body":"Hi, if i'm not missing something here, it seems that \r\n#if macro #else #end behaves differently than #if macro #end #if !macro #end\r\nfor display mod.\r\n\r\nExample:\r\nif we ask display for local3.| position. when local3 is defined in #if !macro #end\r\nsee: http://try.haxe.org/#3CA70\r\nit works as expected\r\n\r\nif we ask display for same position but when loal3 is defined in the #else of #if macro we get \"No classes found\"\r\nsee; http://try.haxe.org/#b12C7\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/comments/84018632","html_url":"https://github.com/HaxeFoundation/haxe/issues/4063#issuecomment-84018632","issue_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4063","id":84018632,"user":{"login":"sebpatu","id":4526806,"avatar_url":"https://avatars.githubusercontent.com/u/4526806?v=3","gravatar_id":"","url":"https://api.github.com/users/sebpatu","html_url":"https://github.com/sebpatu","followers_url":"https://api.github.com/users/sebpatu/followers","following_url":"https://api.github.com/users/sebpatu/following{/other_user}","gists_url":"https://api.github.com/users/sebpatu/gists{/gist_id}","starred_url":"https://api.github.com/users/sebpatu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebpatu/subscriptions","organizations_url":"https://api.github.com/users/sebpatu/orgs","repos_url":"https://api.github.com/users/sebpatu/repos","events_url":"https://api.github.com/users/sebpatu/events{/privacy}","received_events_url":"https://api.github.com/users/sebpatu/received_events","type":"User","site_admin":false},"created_at":"2015-03-20T13:36:29Z","updated_at":"2015-03-20T13:36:29Z","body":"Sorry try.haxe did not saved the code, because it does ot compile with #if macro.\r\n\r\n===============\r\nFirst case is:\r\nclass Test{\r\n\tfunction new() {}\r\n\t\r\n\t#if macro \r\n\tvar local2:String ;\r\n\t#end\r\n\t#if !macro \r\n\tvar local3:String ;\r\n\t#end\r\n\t\r\n    static function main() \r\n    {\r\n        (new Test()).test();\r\n    }\r\n    \r\n   function test():Void\r\n   {\r\n        local3.;\r\n   }\r\n}\r\n\r\n===== second case (with issue) is:\r\nclass Test{\r\n\tfunction new() {}\r\n\t\r\n\t#if macro \r\n\tvar local2:String ;\r\n\t#else\r\n\tvar local3:String ;\r\n\t#end\r\n\t\r\n    static function main() \r\n    {\r\n        (new Test()).test();\r\n    }\r\n    \r\n   function test():Void\r\n   {\r\n        local3.;\r\n   }\r\n}"}}