Index: tests/language/src/PseudoKWNegativeTest.dart |
diff --git a/tests/language/src/PseudoKWNegativeTest.dart b/tests/language/src/PseudoKWNegativeTest.dart |
index 6cc71fb04b2d0312b6cddb4b5a399c003b627122..892678592edbdcc2c87fa030600ddbf673f58a02 100644 |
--- a/tests/language/src/PseudoKWNegativeTest.dart |
+++ b/tests/language/src/PseudoKWNegativeTest.dart |
@@ -1,20 +1,21 @@ |
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
// Check that we cannot use a pseudo keyword at the class level code. |
-// Using pseudo kw 'operator' as class name is not allowed. |
-class operator { |
-} |
+// Pseudo keywords are not allowed to be used as class names. |
+class abstract { } /// 01: compile-time error |
+class factory { } /// 02: compile-time error |
+class get { } /// 03: compile-time error |
+class implements { } /// 04: compile-time error |
+class import { } /// 05: compile-time error |
+class interface { } /// 06: compile-time error |
+class library { } /// 07: compile-time error |
+class native { } /// 08: compile-time error |
+class negate { } /// 09: compile-time error |
+class operator { } /// 10: compile-time error |
+class set { } /// 11: compile-time error |
+class source { } /// 12: compile-time error |
+class static { } /// 13: compile-time error |
gbracha
2012/01/11 19:27:01
Below is the latest list of built-in identifiers f
|
-class PseudoKWNegativeTest { |
- |
- static testMain() { |
- return 0; |
- } |
-} |
- |
- |
-main() { |
- PseudoKWNegativeTest.testMain(); |
-} |
+main() { } |