You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The language did not define the semantics of combining initializing formals and optional parameters. The spec has been updated and the VM now supports this.
I'm trying to use a named argument as a field initializer like so:
class Foo {
var bar;
Foo([this.bar]);
}
main() => print(new Foo(bar: 'bar').bar);
And the VM outputs:
NoSuchMethodException - receiver: 'Instance of 'Foo'' function name: 'Foo.' arguments: [-536873450, Instance of 'Foo']]
0. Function: 'Object.noSuchMethod' url: 'bootstrap' line:93 col:3
1. Function: 'Foo.Foo.' url: '/.../temp.dart' line:-1 col:-1
2. Function: '::.main' url: '/.../temp.dart' line:7 col:9
The text was updated successfully, but these errors were encountered: