{"action":"created","issue":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4389","labels_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4389/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4389/comments","events_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4389/events","html_url":"https://github.com/HaxeFoundation/haxe/issues/4389","id":93386953,"number":4389,"title":"Type parameters and @:from","user":{"login":"ibilon","id":3843471,"avatar_url":"https://avatars.githubusercontent.com/u/3843471?v=3","gravatar_id":"","url":"https://api.github.com/users/ibilon","html_url":"https://github.com/ibilon","followers_url":"https://api.github.com/users/ibilon/followers","following_url":"https://api.github.com/users/ibilon/following{/other_user}","gists_url":"https://api.github.com/users/ibilon/gists{/gist_id}","starred_url":"https://api.github.com/users/ibilon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibilon/subscriptions","organizations_url":"https://api.github.com/users/ibilon/orgs","repos_url":"https://api.github.com/users/ibilon/repos","events_url":"https://api.github.com/users/ibilon/events{/privacy}","received_events_url":"https://api.github.com/users/ibilon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-06T22:01:52Z","updated_at":"2015-07-06T22:18:27Z","closed_at":null,"body":"Hi,\r\n\r\nmy example: http://try.haxe.org/#11080\r\nit doesn't work since type parameters aren't available to static functions, I know\r\n\r\nbut since @:from functions do an instantiation couldn't the type be resolved?\r\nin the example the types are known, it needs to build an abstract `Either<String, Int>`since that's what the function requires\r\n\r\nso doing a \"backpropagation\" or something it should be possible to make the link between the `L` of the function and the `L` of the abstract, right?\r\n\r\nNote that I'm unfamiliar with the way the compiler does that kind of things, so I may be vastly underestimating the complexity of what I'm asking."},"comment":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/comments/119013650","html_url":"https://github.com/HaxeFoundation/haxe/issues/4389#issuecomment-119013650","issue_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4389","id":119013650,"user":{"login":"sledorze","id":416760,"avatar_url":"https://avatars.githubusercontent.com/u/416760?v=3","gravatar_id":"","url":"https://api.github.com/users/sledorze","html_url":"https://github.com/sledorze","followers_url":"https://api.github.com/users/sledorze/followers","following_url":"https://api.github.com/users/sledorze/following{/other_user}","gists_url":"https://api.github.com/users/sledorze/gists{/gist_id}","starred_url":"https://api.github.com/users/sledorze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sledorze/subscriptions","organizations_url":"https://api.github.com/users/sledorze/orgs","repos_url":"https://api.github.com/users/sledorze/repos","events_url":"https://api.github.com/users/sledorze/events{/privacy}","received_events_url":"https://api.github.com/users/sledorze/received_events","type":"User","site_admin":false},"created_at":"2015-07-06T22:18:27Z","updated_at":"2015-07-06T22:18:27Z","body":"is this your intend? http://try.haxe.org/#0Ce68"}}