| Index: tests/language/conditional_property_access_test.dart
|
| diff --git a/tests/language/conditional_property_access_test.dart b/tests/language/conditional_property_access_test.dart
|
| index e8218659af021f697c32accffa96add56084d4c0..0a58a53857e69695538f5a11933568df1ec78597 100644
|
| --- a/tests/language/conditional_property_access_test.dart
|
| +++ b/tests/language/conditional_property_access_test.dart
|
| @@ -47,7 +47,7 @@ main() {
|
|
|
| // Nor can it be used to access toplevel properties in libraries imported via
|
| // prefix.
|
| - Expect.throws(() => h?.topLevelVar, noMethod); /// 09: static type warning
|
| + var x = h?.topLevelVar; /// 09: compile-time error
|
|
|
| // However, '?.' can be used to access the hashCode getter on the class Type.
|
| Expect.equals(C?.hashCode, (C).hashCode); /// 10: ok
|
|
|