{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/27666","repository_url":"https://api.github.com/repos/dart-lang/sdk","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/27666/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/27666/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/27666/events","html_url":"https://github.com/dart-lang/sdk/issues/27666","id":185219475,"number":27666,"title":"Hot reload should run static initializers for new fields","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/area-vm","name":"area-vm","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-25T20:04:07Z","updated_at":"2016-10-25T21:09:43Z","closed_at":null,"body":"We saw this in both Flutter usability studies last week, and then I ran into it today myself:\r\n\r\nWhen you add an instance or static field with a static initializer to a class, you expect the field to start off with the value of the initializer, not null. It is really confusing when you think it has a particular value, but it actually has the value null.\r\n\r\ncc @johnmccutchan, @rmacnak-google "},"comment":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/comments/256176717","html_url":"https://github.com/dart-lang/sdk/issues/27666#issuecomment-256176717","issue_url":"https://api.github.com/repos/dart-lang/sdk/issues/27666","id":256176717,"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},"created_at":"2016-10-25T21:09:43Z","updated_at":"2016-10-25T21:09:43Z","body":"Install Flutter, connect a phone to your computer, then run:\r\n```\r\nflutter create dummy\r\ncd dummy\r\nflutter run\r\n```\r\nEdit `lib/main.dart` to add `final String test = 'foo';` to `MyApp`, and change the line that instantiates `MyHomePage` to look as follows:\r\n```dart\r\n      home: new MyHomePage(title: 'Flutter Demo \"$test\"'),\r\n```\r\n\r\nThen, hit `r` in the `flutter run` console.\r\n\r\nThe app toolbar changes to `Flutter Demo \"null\"`."}}
{"actor":{"display_login":"Hixie"}}