3e409e7b8d
+ update message for list pattern type argument mismatch Change-Id: I49cad4c5b01222592ea535f05be7dcc46639a993 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/280172 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
29 lines
930 B
Plaintext
29 lines
930 B
Plaintext
library /*isNonNullableByDefault*/;
|
|
//
|
|
// Problems in library:
|
|
//
|
|
// pkg/front_end/testcases/patterns/map_pattern_errors.dart:7:15: Error: A map pattern requires exactly two type arguments.
|
|
// case <int>{}:
|
|
// ^
|
|
//
|
|
// pkg/front_end/testcases/patterns/map_pattern_errors.dart:8:28: Error: A map pattern requires exactly two type arguments.
|
|
// case <int, int, String>{}:
|
|
// ^
|
|
//
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
static method test(dynamic o) → dynamic {
|
|
#L1:
|
|
{
|
|
final dynamic #0#0 = o;
|
|
late final core::bool #0#4 = #0#0{core::Map<invalid-type, invalid-type>}.{core::Map::length}{core::int} =={core::num::==}{(core::Object) → core::bool} #C1;
|
|
if(#0#0 is{ForNonNullableByDefault} core::Map<invalid-type, invalid-type> && #0#4 || #0#0 is{ForNonNullableByDefault} core::Map<invalid-type, invalid-type> && #0#4) {
|
|
}
|
|
}
|
|
}
|
|
|
|
constants {
|
|
#C1 = 0
|
|
}
|