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

Unified Diff: tests/corelib/symbol_reserved_word_test.dart

Issue 427603002: Properly handle "#void" in analysis server. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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') | no next file » | 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 7a61aab7e912eb30c2565712107d7a2b976b3b81..901fb34cd396b540804094f83f693b18c2c175be 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: compile-time error
+ x = #void.foo; /// 05: static type warning
ahe 2017/04/05 20:04:14 What is supposed to happen when this line is execu
Paul Berry 2017/04/05 20:29:28 It should be equivalent to: x = (#void).foo; So
ahe 2017/04/06 10:55:52 Thank you for the details. Based on them, I've cha
Paul Berry 2017/04/06 17:20:55 Sounds reasonable. Thanks!
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') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698