Chromium Code Reviews| 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 |