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

Unified Diff: tests/language/dynamic_prefix_core_test.dart

Issue 54983007: Make test of malformed types a dynamic type error. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 7 years, 1 month 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/div_with_power_of_two2_test.dart ('k') | tests/language/instanceof3_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/dynamic_prefix_core_test.dart
diff --git a/tests/language/dynamic_prefix_core_test.dart b/tests/language/dynamic_prefix_core_test.dart
index 1aba87f3c789f95363328dbccfcf8179b3bcc5a0..4a5362a3aa64669d09267bde9a9104ed276ecc37 100644
--- a/tests/language/dynamic_prefix_core_test.dart
+++ b/tests/language/dynamic_prefix_core_test.dart
@@ -9,9 +9,9 @@ import "dart:core" as mycore;
void main() {
// Should still be available because it is not a member of dart:core.
- Expect.isTrue(dynamic is Type);
-
- Expect.throws(() => mycore.dynamic is Type,
- (e) => e is NoSuchMethodError,
+ Expect.isTrue(dynamic is mycore.Type);
+
+ Expect.throws(() => mycore.dynamic is mycore.Type,
+ (e) => e is mycore.NoSuchMethodError,
'dynamic is not a member of dart:core');
}
« no previous file with comments | « tests/language/div_with_power_of_two2_test.dart ('k') | tests/language/instanceof3_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698