Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Unified Diff: tests/language/conditional_property_access_test.dart

Issue 1173523002: Fix analyzer's handling of import prefixes not followed by '.'. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « tests/language/conditional_method_invocation_test.dart ('k') | tests/language/conditional_property_assignment_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698