{"action":"opened","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/24255","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/24255/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/24255/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/24255/events","html_url":"https://github.com/dart-lang/sdk/issues/24255","id":104235844,"number":24255,"title":"Code completion with generic type and extends","user":{"login":"alexander-doroshko","id":4499789,"avatar_url":"https://avatars.githubusercontent.com/u/4499789?v=3","gravatar_id":"","url":"https://api.github.com/users/alexander-doroshko","html_url":"https://github.com/alexander-doroshko","followers_url":"https://api.github.com/users/alexander-doroshko/followers","following_url":"https://api.github.com/users/alexander-doroshko/following{/other_user}","gists_url":"https://api.github.com/users/alexander-doroshko/gists{/gist_id}","starred_url":"https://api.github.com/users/alexander-doroshko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexander-doroshko/subscriptions","organizations_url":"https://api.github.com/users/alexander-doroshko/orgs","repos_url":"https://api.github.com/users/alexander-doroshko/repos","events_url":"https://api.github.com/users/alexander-doroshko/events{/privacy}","received_events_url":"https://api.github.com/users/alexander-doroshko/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Analyzer-Completion","name":"Analyzer-Completion","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Area-Analyzer","name":"Area-Analyzer","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-01T10:25:18Z","updated_at":"2015-09-01T10:25:18Z","closed_at":null,"body":"Sample code:\r\n```\r\nclass Foo {\r\n  String name;\r\n}\r\n\r\nclass Bar<T extends Foo> {\r\n    getName(T foo) {\r\n      return foo.n<caret>;\r\n    }\r\n}\r\n```\r\n\r\nProblem: `name` is not suggested by the code completion at `<caret>` position. `T` is known to extend `Foo`, so properties of `Foo` are expected to be suggested.\r\n\r\n(originally filed to WebStorm issue tracker: [WEB-13973](https://youtrack.jetbrains.com/issue/WEB-13973))"}}