Chromium Code Reviews| 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(); |
| +} |