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

Unified Diff: tests/language/conditional_method_invocation_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_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
« no previous file with comments | « pkg/analyzer/test/generated/static_warning_code_test.dart ('k') | tests/language/conditional_property_access_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698