{"action":"created","issue":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4434","labels_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4434/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4434/comments","events_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4434/events","html_url":"https://github.com/HaxeFoundation/haxe/issues/4434","id":96817569,"number":4434,"title":"null is not properly handled in generic static extensions","user":{"login":"kevinresol","id":1103788,"avatar_url":"https://avatars.githubusercontent.com/u/1103788?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinresol","html_url":"https://github.com/kevinresol","followers_url":"https://api.github.com/users/kevinresol/followers","following_url":"https://api.github.com/users/kevinresol/following{/other_user}","gists_url":"https://api.github.com/users/kevinresol/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinresol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinresol/subscriptions","organizations_url":"https://api.github.com/users/kevinresol/orgs","repos_url":"https://api.github.com/users/kevinresol/repos","events_url":"https://api.github.com/users/kevinresol/events{/privacy}","received_events_url":"https://api.github.com/users/kevinresol/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-23T13:42:47Z","updated_at":"2015-07-23T13:50:57Z","closed_at":"2015-07-23T13:48:01Z","body":"```haxe\r\nusing Test;\r\n\r\nclass Test {\r\n    static function main() {\r\n        var i = 1.f();\r\n        var n = null.f();\r\n    }\r\n    \r\n    public static function f<T>(d:T):T return d;\r\n}\r\n```\r\n\r\ngenerated:\r\n\r\n```js\r\n(function (console) { \"use strict\";\r\nvar Test = function() { };\r\nTest.main = function() {\r\n\tTest.f(1);\r\n\tnull.f();\r\n};\r\nTest.f = function(d) {\r\n\treturn d;\r\n};\r\nTest.main();\r\n})(typeof console != \"undefined\" ? console : {log:function(){}});\r\n```\r\n\r\nnote that `null.f()` is expected to be `Test.f(null)`"},"comment":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/comments/124112338","html_url":"https://github.com/HaxeFoundation/haxe/issues/4434#issuecomment-124112338","issue_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4434","id":124112338,"user":{"login":"kevinresol","id":1103788,"avatar_url":"https://avatars.githubusercontent.com/u/1103788?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinresol","html_url":"https://github.com/kevinresol","followers_url":"https://api.github.com/users/kevinresol/followers","following_url":"https://api.github.com/users/kevinresol/following{/other_user}","gists_url":"https://api.github.com/users/kevinresol/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinresol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinresol/subscriptions","organizations_url":"https://api.github.com/users/kevinresol/orgs","repos_url":"https://api.github.com/users/kevinresol/repos","events_url":"https://api.github.com/users/kevinresol/events{/privacy}","received_events_url":"https://api.github.com/users/kevinresol/received_events","type":"User","site_admin":false},"created_at":"2015-07-23T13:50:57Z","updated_at":"2015-07-23T13:50:57Z","body":"but then why it compiles?"}}