-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work onlegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.soundnesstype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)
Description
In a strong mode it is prohibited to override fields. Therefore Analyzer in a strong mode reports an error for the following code
class A {
int x = 0;
}
class M {
int x = 1;
}
class C extends A with M {
}
main() {
}
Analyzer output in this case is
[error] Field declaration A.x cannot be overridden in M.
But it doesn't report any issues for the following code
class A {
int x = 0;
}
class M {
int x = 1;
}
class C = A with M;
main() {
}
It should be the same error in the case above.
Tested on dartanalyzer version 1.20.0-dev.7.0
Metadata
Metadata
Assignees
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work onlegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.soundnesstype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)