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 |