| Index: tests/language/conditional_method_invocation_test.dart
|
| diff --git a/tests/language/conditional_method_invocation_test.dart b/tests/language/conditional_method_invocation_test.dart
|
| index 4bd6f1fc3f4cb927e9eb6f8b787ae60d7510c6a6..f6844a1350b75556705580799b97a809e9cd8fb1 100644
|
| --- a/tests/language/conditional_method_invocation_test.dart
|
| +++ b/tests/language/conditional_method_invocation_test.dart
|
| @@ -53,7 +53,7 @@ main() {
|
|
|
| // Nor can it be used to access toplevel functions in libraries imported via
|
| // prefix.
|
| - Expect.throws(() => h?.topLevelFunction(), noMethod); /// 11: static type warning
|
| + h?.topLevelFunction(); /// 11: compile-time error
|
|
|
| // However, '?.' can be used to access the toString method on the class Type.
|
| Expect.equals(C?.toString(), (C).toString()); /// 12: ok
|
|
|