-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
legacy-area-analyzerUse area-devexp instead.Use area-devexp instead.
Description
To reproduce
- create base abstract class
- create one or more derivatives
- switch variable of type Base by type in case where you need to implement complete match
Example
abstract class Base {}
class Derived extends Base {}
class AnotherDerived extends Base {}
Base? foo(Base b) {
return switch (b) {
Derived _ => null,
AnotherDerived _ => null,
// without this we have trouble: Base _ => null,
};
}Expected behavior
Linter does not complain, everything is fine
Actual behavior
Linter complains that match is not complete
Metadata
Metadata
Assignees
Labels
legacy-area-analyzerUse area-devexp instead.Use area-devexp instead.