{"action":"created","issue":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/2538","labels_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/2538/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/2538/comments","events_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/2538/events","html_url":"https://github.com/HaxeFoundation/haxe/issues/2538","id":25705182,"number":2538,"title":"VerifyError: Error #1030 on haxe/flash","user":{"login":"m22spencer","id":844938,"avatar_url":"https://avatars.githubusercontent.com/u/844938?v=3","gravatar_id":"","url":"https://api.github.com/users/m22spencer","html_url":"https://github.com/m22spencer","followers_url":"https://api.github.com/users/m22spencer/followers","following_url":"https://api.github.com/users/m22spencer/following{/other_user}","gists_url":"https://api.github.com/users/m22spencer/gists{/gist_id}","starred_url":"https://api.github.com/users/m22spencer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m22spencer/subscriptions","organizations_url":"https://api.github.com/users/m22spencer/orgs","repos_url":"https://api.github.com/users/m22spencer/repos","events_url":"https://api.github.com/users/m22spencer/events{/privacy}","received_events_url":"https://api.github.com/users/m22spencer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"ncannasse","id":1022912,"avatar_url":"https://avatars.githubusercontent.com/u/1022912?v=3","gravatar_id":"","url":"https://api.github.com/users/ncannasse","html_url":"https://github.com/ncannasse","followers_url":"https://api.github.com/users/ncannasse/followers","following_url":"https://api.github.com/users/ncannasse/following{/other_user}","gists_url":"https://api.github.com/users/ncannasse/gists{/gist_id}","starred_url":"https://api.github.com/users/ncannasse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncannasse/subscriptions","organizations_url":"https://api.github.com/users/ncannasse/orgs","repos_url":"https://api.github.com/users/ncannasse/repos","events_url":"https://api.github.com/users/ncannasse/events{/privacy}","received_events_url":"https://api.github.com/users/ncannasse/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/milestones/5","html_url":"https://github.com/HaxeFoundation/haxe/milestones/3.3","labels_url":"https://api.github.com/repos/HaxeFoundation/haxe/milestones/5/labels","id":586975,"number":5,"title":"3.3","description":"","creator":{"login":"ncannasse","id":1022912,"avatar_url":"https://avatars.githubusercontent.com/u/1022912?v=3","gravatar_id":"","url":"https://api.github.com/users/ncannasse","html_url":"https://github.com/ncannasse","followers_url":"https://api.github.com/users/ncannasse/followers","following_url":"https://api.github.com/users/ncannasse/following{/other_user}","gists_url":"https://api.github.com/users/ncannasse/gists{/gist_id}","starred_url":"https://api.github.com/users/ncannasse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncannasse/subscriptions","organizations_url":"https://api.github.com/users/ncannasse/orgs","repos_url":"https://api.github.com/users/ncannasse/repos","events_url":"https://api.github.com/users/ncannasse/events{/privacy}","received_events_url":"https://api.github.com/users/ncannasse/received_events","type":"User","site_admin":false},"open_issues":171,"closed_issues":111,"state":"open","created_at":"2014-03-04T14:22:27Z","updated_at":"2015-12-24T15:21:37Z","due_on":"2015-11-01T23:00:00Z","closed_at":null},"comments":9,"created_at":"2014-01-16T06:06:44Z","updated_at":"2015-12-28T20:39:50Z","closed_at":null,"body":"VerifyError: Error #1030: Stack depth is unbalanced. 2 != 1.\r\n\r\n```\r\nimport haxe.ds.Option;\r\n\r\nclass Test {\r\n  static function main(){\r\n        function foo():Bool { return true; }\r\n        map(function(num:Int):Void {\r\n            if(foo()) 10;   //VerifyError: Error #1030: Stack depth is unbalanced. 2 != 1.\r\n            //if(true) 10;    //works\r\n        });\r\n  }\r\n  inline //removing inline fixes. \r\n  public static function map<T,K>(f:T->K):Void {\r\n\t\tswitch (None) {\r\n\t\tcase Some(t): Some(f(t)); \r\n\t\tcase None: None;\r\n\t\t}\r\n\t}\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/comments/167649462","html_url":"https://github.com/HaxeFoundation/haxe/issues/2538#issuecomment-167649462","issue_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/2538","id":167649462,"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-12-28T20:39:50Z","updated_at":"2015-12-28T20:39:50Z","body":"Interestingly the new analyzer stack overflows on this example because it doesn't know what to do with an if-then in a value place. That means I have to detect this case there anyway."}}