{"action":"closed","issue":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4874","repository_url":"https://api.github.com/repos/HaxeFoundation/haxe","labels_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4874/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4874/comments","events_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4874/events","html_url":"https://github.com/HaxeFoundation/haxe/issues/4874","id":135775161,"number":4874,"title":"Inline new not triggered","user":{"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},"labels":[],"state":"closed","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":null,"comments":3,"created_at":"2016-02-23T15:47:25Z","updated_at":"2016-02-23T20:33:21Z","closed_at":"2016-02-23T20:33:21Z","body":"When working on Heaps I found that some inline new is not correctly performed in the following code:\r\n\r\n```haxe\r\nclass Main {\r\n    static function main() {\r\n       new h3d.col.Sphere().inFrustum(new h3d.Matrix());\r\n    }\r\n}\r\n```\r\n\r\nThe `Sphere.inFrustum` method should be able to eliminate all allocations while it keeps allocating `Plane` instances.\r\n\r\nI don't remember if I checked that code for memory allocation before and thus if it's a regression or not, I'ld surely like to know why it doesn't get triggered in that case and make sure that once fixed it doesn't regress :)"}}