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

Unified Diff: tests/language/conditional_property_assignment_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
« no previous file with comments | « tests/language/conditional_property_access_test.dart ('k') | tests/language/empty_library.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/conditional_property_assignment_test.dart
diff --git a/tests/language/conditional_property_assignment_test.dart b/tests/language/conditional_property_assignment_test.dart
index bf77842968a9414df7bdea51521b1ccbd6fcd087..6b348216a7f75daccebe440266dbdf32ab4823ee 100644
--- a/tests/language/conditional_property_assignment_test.dart
+++ b/tests/language/conditional_property_assignment_test.dart
@@ -87,7 +87,7 @@ main() {
// Nor can it be used to assign to toplevel properties in libraries imported
// via prefix.
- Expect.throws(() => h?.topLevelVar = null, noMethod); /// 20: static type warning
- Expect.throws(() => h?.topLevelVar += null, noMethod); /// 21: static type warning
- Expect.throws(() => h?.topLevelVar ??= null, noMethod); /// 22: static type warning
+ h?.topLevelVar = null; /// 20: compile-time error
+ h?.topLevelVar += null; /// 21: compile-time error
+ h?.topLevelVar ??= null; /// 22: compile-time error
}
« no previous file with comments | « tests/language/conditional_property_access_test.dart ('k') | tests/language/empty_library.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698