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

Unified Diff: tests/corelib/symbol_reserved_word_test.dart

Issue 2804843003: Fix some crashes. (Closed)
Patch Set: Created 3 years, 8 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/corelib/corelib.status ('k') | tests/standalone/standalone.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/symbol_reserved_word_test.dart
diff --git a/tests/corelib/symbol_reserved_word_test.dart b/tests/corelib/symbol_reserved_word_test.dart
index 36df864535012b63f3d80255b01b3d2b1c84d32f..c6a585b37156fcdd284a52a177262244ae8e5cf9 100644
--- a/tests/corelib/symbol_reserved_word_test.dart
+++ b/tests/corelib/symbol_reserved_word_test.dart
@@ -18,7 +18,7 @@ main() {
// However, it is not allowed as a part of a symbol name.
x = const Symbol('void.foo'); // //# 04: compile-time error
- x = #void.foo; // //# 05: static type warning
+ Expect.throws(() { x = #void.foo; }, (e) => e is NoSuchMethodError); //# 05: static type warning
checkBadSymbol('void.foo'); // //# 06: ok
x = const Symbol('foo.void'); // //# 07: compile-time error
x = #foo.void; // //# 08: compile-time error
« no previous file with comments | « tests/corelib/corelib.status ('k') | tests/standalone/standalone.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698