| Index: tests/language/call_nonexistent_static_test.dart
|
| diff --git a/tests/language/call_nonexistent_static_test.dart b/tests/language/call_nonexistent_static_test.dart
|
| index d93fad9f5532a7ba67da1c711bdda69eabacfc1c..4eb206a4d1f7b865eff404c4d5e02a0a9fdc299b 100644
|
| --- a/tests/language/call_nonexistent_static_test.dart
|
| +++ b/tests/language/call_nonexistent_static_test.dart
|
| @@ -3,12 +3,12 @@
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| // When attempting to call a nonexistent static method, getter or setter, check
|
| -// that a NoSuchMethodException is thrown.
|
| +// that a NoSuchMethodError is thrown.
|
|
|
| class C {}
|
|
|
| main() {
|
| - Expect.throws(() => C.hest = 1, (e) => e is NoSuchMethodException); /// 01: static type warning
|
| - Expect.throws(() => C.hest, (e) => e is NoSuchMethodException); /// 02: static type warning
|
| - Expect.throws(() => C.hest(), (e) => e is NoSuchMethodException); /// 03: static type warning
|
| + Expect.throws(() => C.hest = 1, (e) => e is NoSuchMethodError); /// 01: static type warning
|
| + Expect.throws(() => C.hest, (e) => e is NoSuchMethodError); /// 02: static type warning
|
| + Expect.throws(() => C.hest(), (e) => e is NoSuchMethodError); /// 03: static type warning
|
| }
|
|
|