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

Unified Diff: tests/language/src/PseudoKWNegativeTest.dart

Issue 9147006: fix issue 356 by making test match spec (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: gilad feedback Created 8 years, 11 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/language/language.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() { }
« no previous file with comments | « tests/language/language.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698