{"action":"created","issue":{"url":"https://api.github.com/repos/flutter/flutter/issues/15590","repository_url":"https://api.github.com/repos/flutter/flutter","labels_url":"https://api.github.com/repos/flutter/flutter/issues/15590/labels{/name}","comments_url":"https://api.github.com/repos/flutter/flutter/issues/15590/comments","events_url":"https://api.github.com/repos/flutter/flutter/issues/15590/events","html_url":"https://github.com/flutter/flutter/issues/15590","id":305734238,"number":15590,"title":"Dart 2 - \"implementation limit\" requires const or new for most widgets","user":{"login":"lukef","id":37941,"avatar_url":"https://avatars3.githubusercontent.com/u/37941?v=4","gravatar_id":"","url":"https://api.github.com/users/lukef","html_url":"https://github.com/lukef","followers_url":"https://api.github.com/users/lukef/followers","following_url":"https://api.github.com/users/lukef/following{/other_user}","gists_url":"https://api.github.com/users/lukef/gists{/gist_id}","starred_url":"https://api.github.com/users/lukef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukef/subscriptions","organizations_url":"https://api.github.com/users/lukef/orgs","repos_url":"https://api.github.com/users/lukef/repos","events_url":"https://api.github.com/users/lukef/events{/privacy}","received_events_url":"https://api.github.com/users/lukef/received_events","type":"User","site_admin":false},"labels":[{"id":793035509,"url":"https://api.github.com/repos/flutter/flutter/labels/dart2","name":"dart2","color":"b6e1ef","default":false},{"id":381246489,"url":"https://api.github.com/repos/flutter/flutter/labels/dependency:%20dart","name":"dependency: dart","color":"003570","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-15T21:59:54Z","updated_at":"2018-03-16T12:14:42Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"```\r\n[√] Flutter (Channel master, v0.2.2-pre.55, on Microsoft Windows [Version 10.0.16299.309], locale en-US)\r\n    • Flutter version 0.2.2-pre.55\r\n    • Framework revision c640b19167 (7 hours ago), 2018-03-15 07:30:32 -0700\r\n    • Engine revision 520529dbba\r\n    • Dart version 2.0.0-dev.37.0.flutter-7328726088\r\n```\r\n\r\nWhen running (via `flutter run` or vscode) with the `--preview-dart-2` argument I get the following error for most of my widget / class declarations:\r\n\r\n```\r\nThe keyword 'const' or 'new' is required here. Due to an implementation limit, the compiler isn't able to infer 'const' or 'new' here.\r\n```\r\n\r\nYou can see the issue by using the following repo: https://github.com/lukef/cam/tree/dart2 (`dart2` branch)\r\n\r\nScreenshot:\r\n\r\n![screenshot_1521149022](https://user-images.githubusercontent.com/37941/37493029-cc079fb0-2860-11e8-88f4-3d4a5b0a577e.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/flutter/flutter/issues/comments/373695678","html_url":"https://github.com/flutter/flutter/issues/15590#issuecomment-373695678","issue_url":"https://api.github.com/repos/flutter/flutter/issues/15590","id":373695678,"user":{"login":"kmillikin","id":1971137,"avatar_url":"https://avatars0.githubusercontent.com/u/1971137?v=4","gravatar_id":"","url":"https://api.github.com/users/kmillikin","html_url":"https://github.com/kmillikin","followers_url":"https://api.github.com/users/kmillikin/followers","following_url":"https://api.github.com/users/kmillikin/following{/other_user}","gists_url":"https://api.github.com/users/kmillikin/gists{/gist_id}","starred_url":"https://api.github.com/users/kmillikin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmillikin/subscriptions","organizations_url":"https://api.github.com/users/kmillikin/orgs","repos_url":"https://api.github.com/users/kmillikin/repos","events_url":"https://api.github.com/users/kmillikin/events{/privacy}","received_events_url":"https://api.github.com/users/kmillikin/received_events","type":"User","site_admin":false},"created_at":"2018-03-16T12:14:42Z","updated_at":"2018-03-16T12:14:42Z","author_association":"NONE","body":"cc @peter-ahe-google\r\n\r\nI'm sorry about this.\r\n\r\nWe discovered that implicit new/const wasn't working correctly in some places where it had to choose between new or const, so we attempted to make just those cases a compile-time error.  This was a temporary measure to ensure that users would not write code depending on our incorrect behavior and get a surprise when we fixed it.\r\n\r\nUnfortunately, we disabled the feature in many more contexts than we intended.  We're working on a fix."}}
{"actor":{"display_login":"kmillikin"}}