4c0cab024e
Update CFE tests (and a few analyzer tests) to match the new world of the syntax being unsupported. Fixes https://github.com/dart-lang/sdk/issues/42681 Change-Id: I71bc973f36dfb978ddb825edb68530d8e260a58a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/157980 Commit-Queue: Jens Johansen <jensj@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
11 lines
127 B
Dart
11 lines
127 B
Dart
class A {
|
|
operator [](int index) => index;
|
|
}
|
|
|
|
main() {
|
|
A? a = null;
|
|
a!?.toString();
|
|
a!?.[42];
|
|
a!?[42];
|
|
a! ? [42];
|
|
} |