{"action":"closed","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/13406","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/13406/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/13406/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/13406/events","html_url":"https://github.com/dart-lang/sdk/issues/13406","id":84551325,"number":13406,"title":"dart2js doesn't match typedefs and Function types when checking const objects","user":{"login":"floitschG","id":8631949,"avatar_url":"https://avatars.githubusercontent.com/u/8631949?v=3","gravatar_id":"","url":"https://api.github.com/users/floitschG","html_url":"https://github.com/floitschG","followers_url":"https://api.github.com/users/floitschG/followers","following_url":"https://api.github.com/users/floitschG/following{/other_user}","gists_url":"https://api.github.com/users/floitschG/gists{/gist_id}","starred_url":"https://api.github.com/users/floitschG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/floitschG/subscriptions","organizations_url":"https://api.github.com/users/floitschG/orgs","repos_url":"https://api.github.com/users/floitschG/repos","events_url":"https://api.github.com/users/floitschG/events{/privacy}","received_events_url":"https://api.github.com/users/floitschG/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Area-Dart2JS","name":"Area-Dart2JS","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Priority-Low","name":"Priority-Low","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Triaged","name":"Triaged","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2013-09-18T13:43:59Z","updated_at":"2015-08-14T20:14:46Z","closed_at":"2015-08-14T20:14:46Z","body":"Dart2js doesn't match const functions and typedefs when building const objects.\nThe following example won't compile with error:\n\n$ sdk/bin/dart2js --checked --out=t/foo.js /tmp/tt.dart\n/tmp/tt.dart:3:12: Error: &quot;F&quot; is not assignable to &quot;Function&quot;.\n&nbsp;&nbsp;const A({this.foo: null});\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;^^^^^^^^^^^^^^\nError: Compilation failed.\n\n\n&equals;&equals;&equals;\ntypedef dynamic F(int a, int b);\nclass A {\n&nbsp;&nbsp;const A({this.foo: null});\n&nbsp;&nbsp;final F foo;\n}\n\n\\_foo(int a, int b) {\n&nbsp;&nbsp;return a + b;\n}\n\nmain() {\n&nbsp;&nbsp;const A(foo: \\_foo);\n}\n&equals;&equals;&equals;"}}