Missing error for duplicated initializing formal #22057
Labels
legacy-area-analyzer
Use area-devexp instead.
P2
A bug or feature request we're likely to work on
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Given the following code:
class C {
String f;
C(this.f, {this.f: ''});
}
There should be an error generated because the field 'f' is initialized more than once in the constructor. The VM currently has this behavior and the specification will be updated to clarify that this is the expected behavior.
The text was updated successfully, but these errors were encountered: