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

Unified Diff: tests/language/src/PseudoKWClassTest.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: update copyright dates 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') | tests/language/src/PseudoKWNegativeTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/src/PseudoKWClassTest.dart
diff --git a/tests/language/src/PseudoKWClassTest.dart b/tests/language/src/PseudoKWClassTest.dart
new file mode 100644
index 0000000000000000000000000000000000000000..21ee169ce3a3986be8d6bf5048dfbca826b9be5f
--- /dev/null
+++ b/tests/language/src/PseudoKWClassTest.dart
@@ -0,0 +1,43 @@
+// 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.
+
gbracha 2012/01/09 21:37:39 I'm sorry, but the spec on this is actually going
+// Pseudo keywords are allowed to be used as class names.
+class abstract { }
+class factory { }
+class get { }
+class implements { }
+class import { }
+class interface { }
+class library { }
+class native { }
+class negate { }
+class operator { }
+class set { }
+class source { }
+class static { }
+
+class PseudoKWClassTest {
+
+ static testMain() {
+ new abstract();
+ new factory();
+ new get();
+ new implements();
+ new import();
+ new interface();
+ new library();
+ new native();
+ new negate();
+ new operator();
+ new set();
+ new source();
+ new static();
+ }
+}
+
+
+main() {
+ PseudoKWClassTest.testMain();
+}
« no previous file with comments | « tests/language/language.status ('k') | tests/language/src/PseudoKWNegativeTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698