Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 // Check that we cannot use a pseudo keyword at the class level code. | 4 // Check that we cannot use a pseudo keyword at the class level code. |
| 5 | 5 |
| 6 // Using pseudo kw 'operator' as class name is not allowed. | 6 // Pseudo keywords are not allowed to be used as class names. |
| 7 class operator { | 7 class abstract { } /// 01: compile-time error |
| 8 } | 8 class factory { } /// 02: compile-time error |
| 9 class get { } /// 03: compile-time error | |
| 10 class implements { } /// 04: compile-time error | |
| 11 class import { } /// 05: compile-time error | |
| 12 class interface { } /// 06: compile-time error | |
| 13 class library { } /// 07: compile-time error | |
| 14 class native { } /// 08: compile-time error | |
| 15 class negate { } /// 09: compile-time error | |
| 16 class operator { } /// 10: compile-time error | |
| 17 class set { } /// 11: compile-time error | |
| 18 class source { } /// 12: compile-time error | |
| 19 class static { } /// 13: compile-time error | |
|
gbracha
2012/01/11 19:27:01
Below is the latest list of built-in identifiers f
| |
| 9 | 20 |
| 10 class PseudoKWNegativeTest { | 21 main() { } |
| 11 | |
| 12 static testMain() { | |
| 13 return 0; | |
| 14 } | |
| 15 } | |
| 16 | |
| 17 | |
| 18 main() { | |
| 19 PseudoKWNegativeTest.testMain(); | |
| 20 } | |
| OLD | NEW |