| Index: tests/language/first_class_types_literals_test.dart
|
| diff --git a/tests/language/first_class_types_literals_test.dart b/tests/language/first_class_types_literals_test.dart
|
| index 2f32cfe57f82d3dad1a7b052efc9368fbf30b63f..c0a0e0f43ca110ea1860fde08d22242bdfc7c9d9 100644
|
| --- a/tests/language/first_class_types_literals_test.dart
|
| +++ b/tests/language/first_class_types_literals_test.dart
|
| @@ -48,16 +48,16 @@ main() {
|
| Expect.equals((D).runtimeType, (D).runtimeType.runtimeType);
|
|
|
| // Test that operator calls on class literals go to Type.
|
| - Expect.throws(() => C = 1, (e) => e is NoSuchMethodError);
|
| - Expect.throws(() => C++, (e) => e is NoSuchMethodError);
|
| - Expect.throws(() => C + 1, (e) => e is NoSuchMethodError);
|
| - Expect.throws(() => C[2], (e) => e is NoSuchMethodError);
|
| - Expect.throws(() => C[2] = 'hest', (e) => e is NoSuchMethodError);
|
| - Expect.throws(() => dynamic = 1, (e) => e is NoSuchMethodError);
|
| - Expect.throws(() => dynamic++, (e) => e is NoSuchMethodError);
|
| - Expect.throws(() => dynamic + 1, (e) => e is NoSuchMethodError);
|
| - Expect.throws(() => dynamic[2], (e) => e is NoSuchMethodError);
|
| - Expect.throws(() => dynamic[2] = 'hest', (e) => e is NoSuchMethodError);
|
| + Expect.throws(() => C = 1, (e) => e is NoSuchMethodError); /// 03: static type warning
|
| + Expect.throws(() => C++, (e) => e is NoSuchMethodError); /// 04: static type warning
|
| + Expect.throws(() => C + 1, (e) => e is NoSuchMethodError); /// 05: static type warning
|
| + Expect.throws(() => C[2], (e) => e is NoSuchMethodError); /// 06: static type warning
|
| + Expect.throws(() => C[2] = 'hest', (e) => e is NoSuchMethodError); /// 07: static type warning
|
| + Expect.throws(() => dynamic = 1, (e) => e is NoSuchMethodError); /// 08: static type warning
|
| + Expect.throws(() => dynamic++, (e) => e is NoSuchMethodError); /// 09: static type warning
|
| + Expect.throws(() => dynamic + 1, (e) => e is NoSuchMethodError); /// 10: static type warning
|
| + Expect.throws(() => dynamic[2], (e) => e is NoSuchMethodError); /// 11: static type warning
|
| + Expect.throws(() => dynamic[2] = 'hest', (e) => e is NoSuchMethodError); /// 12: static type warning
|
|
|
| Expect.equals((dynamic).toString(), 'dynamic');
|
| }
|
|
|