{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/24836","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/24836/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/24836/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/24836/events","html_url":"https://github.com/dart-lang/sdk/issues/24836","id":115225880,"number":24836,"title":"If a class Foo has a constructor named bar, warn when calling Foo.bar()","user":{"login":"Hixie","id":551196,"avatar_url":"https://avatars.githubusercontent.com/u/551196?v=3","gravatar_id":"","url":"https://api.github.com/users/Hixie","html_url":"https://github.com/Hixie","followers_url":"https://api.github.com/users/Hixie/followers","following_url":"https://api.github.com/users/Hixie/following{/other_user}","gists_url":"https://api.github.com/users/Hixie/gists{/gist_id}","starred_url":"https://api.github.com/users/Hixie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hixie/subscriptions","organizations_url":"https://api.github.com/users/Hixie/orgs","repos_url":"https://api.github.com/users/Hixie/repos","events_url":"https://api.github.com/users/Hixie/events{/privacy}","received_events_url":"https://api.github.com/users/Hixie/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Analyzer-Hint","name":"Analyzer-Hint","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/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Type-Enhancement","name":"Type-Enhancement","color":"ededed"}],"state":"closed","locked":false,"assignee":{"login":"bwilkerson","id":5840555,"avatar_url":"https://avatars.githubusercontent.com/u/5840555?v=3","gravatar_id":"","url":"https://api.github.com/users/bwilkerson","html_url":"https://github.com/bwilkerson","followers_url":"https://api.github.com/users/bwilkerson/followers","following_url":"https://api.github.com/users/bwilkerson/following{/other_user}","gists_url":"https://api.github.com/users/bwilkerson/gists{/gist_id}","starred_url":"https://api.github.com/users/bwilkerson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwilkerson/subscriptions","organizations_url":"https://api.github.com/users/bwilkerson/orgs","repos_url":"https://api.github.com/users/bwilkerson/repos","events_url":"https://api.github.com/users/bwilkerson/events{/privacy}","received_events_url":"https://api.github.com/users/bwilkerson/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/dart-lang/sdk/milestones/32","html_url":"https://github.com/dart-lang/sdk/milestones/1.14","labels_url":"https://api.github.com/repos/dart-lang/sdk/milestones/32/labels","id":1289705,"number":32,"title":"1.14","description":null,"creator":{"login":"mit-mit","id":13644170,"avatar_url":"https://avatars.githubusercontent.com/u/13644170?v=3","gravatar_id":"","url":"https://api.github.com/users/mit-mit","html_url":"https://github.com/mit-mit","followers_url":"https://api.github.com/users/mit-mit/followers","following_url":"https://api.github.com/users/mit-mit/following{/other_user}","gists_url":"https://api.github.com/users/mit-mit/gists{/gist_id}","starred_url":"https://api.github.com/users/mit-mit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mit-mit/subscriptions","organizations_url":"https://api.github.com/users/mit-mit/orgs","repos_url":"https://api.github.com/users/mit-mit/repos","events_url":"https://api.github.com/users/mit-mit/events{/privacy}","received_events_url":"https://api.github.com/users/mit-mit/received_events","type":"User","site_admin":false},"open_issues":42,"closed_issues":8,"state":"open","created_at":"2015-09-04T07:22:54Z","updated_at":"2015-11-06T14:18:44Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-11-05T07:40:34Z","updated_at":"2015-11-06T15:57:35Z","closed_at":"2015-11-06T14:18:44Z","body":"The following code:\r\n\r\n```dart\r\n   Foo foo = Foo.bar()\r\n```\r\n...leads to analyzer errors to the effect that there's no such static method as Foo.bar(). When there's a constructor with that name, we should add a hint to the effect that maybe you forgot the \"new\"."},"comment":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/comments/154447328","html_url":"https://github.com/dart-lang/sdk/issues/24836#issuecomment-154447328","issue_url":"https://api.github.com/repos/dart-lang/sdk/issues/24836","id":154447328,"user":{"login":"sethladd","id":5479,"avatar_url":"https://avatars.githubusercontent.com/u/5479?v=3","gravatar_id":"","url":"https://api.github.com/users/sethladd","html_url":"https://github.com/sethladd","followers_url":"https://api.github.com/users/sethladd/followers","following_url":"https://api.github.com/users/sethladd/following{/other_user}","gists_url":"https://api.github.com/users/sethladd/gists{/gist_id}","starred_url":"https://api.github.com/users/sethladd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sethladd/subscriptions","organizations_url":"https://api.github.com/users/sethladd/orgs","repos_url":"https://api.github.com/users/sethladd/repos","events_url":"https://api.github.com/users/sethladd/events{/privacy}","received_events_url":"https://api.github.com/users/sethladd/received_events","type":"User","site_admin":false},"created_at":"2015-11-06T15:57:35Z","updated_at":"2015-11-06T15:57:35Z","body":"Nice! Thanks for the helpful message :)"}}