{"action":"created","issue":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4315","labels_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4315/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4315/comments","events_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4315/events","html_url":"https://github.com/HaxeFoundation/haxe/issues/4315","id":87398642,"number":4315,"title":"Completion Bug with abstract @:from ","user":{"login":"frabbit","id":1387338,"avatar_url":"https://avatars.githubusercontent.com/u/1387338?v=3","gravatar_id":"","url":"https://api.github.com/users/frabbit","html_url":"https://github.com/frabbit","followers_url":"https://api.github.com/users/frabbit/followers","following_url":"https://api.github.com/users/frabbit/following{/other_user}","gists_url":"https://api.github.com/users/frabbit/gists{/gist_id}","starred_url":"https://api.github.com/users/frabbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frabbit/subscriptions","organizations_url":"https://api.github.com/users/frabbit/orgs","repos_url":"https://api.github.com/users/frabbit/repos","events_url":"https://api.github.com/users/frabbit/events{/privacy}","received_events_url":"https://api.github.com/users/frabbit/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/HaxeFoundation/haxe/labels/feature-completion","name":"feature-completion","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-11T16:12:44Z","updated_at":"2015-06-11T16:21:55Z","closed_at":null,"body":"this fails to provide completion:\r\n\r\n```haxe\r\n@:forward abstract Foo(Int) from Int {\r\n\tpublic function new (x) this = x;\r\n\t@:from public static function from1 (x:String):Foo {\r\n\t\treturn new Foo(Std.parseInt(x));\r\n\t}\r\n}\r\n\r\nclass Main {\r\n\tstatic function foo (d:Foo) {\r\n\t\treturn \"hey\";\r\n\t}\r\n\tpublic static function main () {\r\n\t\tfoo(\"1\").| // no completion at this point\r\n\t}\r\n}\r\n```\r\n\r\nthe error is something like:\r\n\r\nMain.hx:23: characters 6-9: String should be Foo\r\nMain.hx:23: characters 6-9: For function argument 'd'\r\nMain.hx:15: characters 0-5: Defined in this class"},"comment":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/comments/111192076","html_url":"https://github.com/HaxeFoundation/haxe/issues/4315#issuecomment-111192076","issue_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4315","id":111192076,"user":{"login":"frabbit","id":1387338,"avatar_url":"https://avatars.githubusercontent.com/u/1387338?v=3","gravatar_id":"","url":"https://api.github.com/users/frabbit","html_url":"https://github.com/frabbit","followers_url":"https://api.github.com/users/frabbit/followers","following_url":"https://api.github.com/users/frabbit/following{/other_user}","gists_url":"https://api.github.com/users/frabbit/gists{/gist_id}","starred_url":"https://api.github.com/users/frabbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frabbit/subscriptions","organizations_url":"https://api.github.com/users/frabbit/orgs","repos_url":"https://api.github.com/users/frabbit/repos","events_url":"https://api.github.com/users/frabbit/events{/privacy}","received_events_url":"https://api.github.com/users/frabbit/received_events","type":"User","site_admin":false},"created_at":"2015-06-11T16:21:55Z","updated_at":"2015-06-11T16:21:55Z","body":"yes"}}