31e119e594
This reports the error on empty map pattern and moves the reporting of rest patterns in map patterns to the shared analysis. Change-Id: I317d0c42a3bc7534462b1b9781c1f6471746fc0f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/292860 Reviewed-by: Johnni Winther <johnniwinther@google.com> Reviewed-by: Chloe Stefantsova <cstefantsova@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>
20 lines
658 B
Plaintext
20 lines
658 B
Plaintext
class Class {
|
|
int get field => 42;
|
|
bool operator >=(Class cls) => true;
|
|
Class operator >(int i) => new Class();
|
|
}
|
|
|
|
argumentTypeNotAssignable(Class cls) {}
|
|
relationalPatternOperatorReturnTypeNotAssignableToBool(Class cls) {}
|
|
patternTypeMismatchInIrrefutableContext(List<String> list) {}
|
|
duplicateAssignmentPatternVariable(List<String> list) {}
|
|
duplicateRecordPatternField(o) {}
|
|
duplicateRestPattern(o) {}
|
|
emptyMapPattern(o) {}
|
|
singleRestPatternInMap(o) {}
|
|
matchedTypeIsStrictlyNonNullable(List<int> list) {}
|
|
nonBooleanCondition(int i) {}
|
|
refutablePatternInIrrefutableContext(int? x) {}
|
|
restPatternNotLastInMap(o) {}
|
|
restPatternWithSubPatternInMap(o) {}
|