field initializer should win over implicit optional-argument null #2159
Labels
area-language
Dart language related items (some items might be better tracked at github.com/dart-lang/language).
closed-duplicate
Closed in favor of an existing report
given the following class A, an instantiation of the form new A() should have its field initialized with 499.
===
class A {
var x = 499;
A([this.x]);
}
===
Currently the x-field is initialized with null, since [this.x] must be interpreted as if it was [this.x = null].
The text was updated successfully, but these errors were encountered: