{"action":"created","issue":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4558","labels_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4558/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4558/comments","events_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4558/events","html_url":"https://github.com/HaxeFoundation/haxe/pull/4558","id":108309675,"number":4558,"title":"trying to test inline function new with Math.random()","user":{"login":"delahee","id":644444,"avatar_url":"https://avatars.githubusercontent.com/u/644444?v=3","gravatar_id":"","url":"https://api.github.com/users/delahee","html_url":"https://github.com/delahee","followers_url":"https://api.github.com/users/delahee/followers","following_url":"https://api.github.com/users/delahee/following{/other_user}","gists_url":"https://api.github.com/users/delahee/gists{/gist_id}","starred_url":"https://api.github.com/users/delahee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delahee/subscriptions","organizations_url":"https://api.github.com/users/delahee/orgs","repos_url":"https://api.github.com/users/delahee/repos","events_url":"https://api.github.com/users/delahee/events{/privacy}","received_events_url":"https://api.github.com/users/delahee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-25T11:44:58Z","updated_at":"2015-10-07T11:30:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/pulls/4558","html_url":"https://github.com/HaxeFoundation/haxe/pull/4558","diff_url":"https://github.com/HaxeFoundation/haxe/pull/4558.diff","patch_url":"https://github.com/HaxeFoundation/haxe/pull/4558.patch"},"body":"Hi @andyli @ncannasse @Simn !\r\n\r\nAs I told you, I started to inspect some little mishaps of the compiler, following your advice, I added a test that does not pass and here it is. \r\n\r\nAs an optimisation guy, I expect the test to pass, Math.random call in this case is safe to inline and stripping the new class.\r\n\r\nThis is excerpt from a real world example where my particle code was not correctly inlined.\r\n\r\nI can try to learn how to fix but I'll need some feedback :)\r\n\r\nif we can validate this methodology, I 'll move on to some other test and maybe test some other targets. Thanks.\r\n"},"comment":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/comments/146161321","html_url":"https://github.com/HaxeFoundation/haxe/pull/4558#issuecomment-146161321","issue_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4558","id":146161321,"user":{"login":"delahee","id":644444,"avatar_url":"https://avatars.githubusercontent.com/u/644444?v=3","gravatar_id":"","url":"https://api.github.com/users/delahee","html_url":"https://github.com/delahee","followers_url":"https://api.github.com/users/delahee/followers","following_url":"https://api.github.com/users/delahee/following{/other_user}","gists_url":"https://api.github.com/users/delahee/gists{/gist_id}","starred_url":"https://api.github.com/users/delahee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delahee/subscriptions","organizations_url":"https://api.github.com/users/delahee/orgs","repos_url":"https://api.github.com/users/delahee/repos","events_url":"https://api.github.com/users/delahee/events{/privacy}","received_events_url":"https://api.github.com/users/delahee/received_events","type":"User","site_admin":false},"created_at":"2015-10-07T11:30:15Z","updated_at":"2015-10-07T11:30:15Z","body":"renamed."}}