Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 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. | |
| 5 | |
|
gbracha
2012/01/09 21:37:39
I'm sorry, but the spec on this is actually going
| |
| 6 // Pseudo keywords are allowed to be used as class names. | |
| 7 class abstract { } | |
| 8 class factory { } | |
| 9 class get { } | |
| 10 class implements { } | |
| 11 class import { } | |
| 12 class interface { } | |
| 13 class library { } | |
| 14 class native { } | |
| 15 class negate { } | |
| 16 class operator { } | |
| 17 class set { } | |
| 18 class source { } | |
| 19 class static { } | |
| 20 | |
| 21 class PseudoKWClassTest { | |
| 22 | |
| 23 static testMain() { | |
| 24 new abstract(); | |
| 25 new factory(); | |
| 26 new get(); | |
| 27 new implements(); | |
| 28 new import(); | |
| 29 new interface(); | |
| 30 new library(); | |
| 31 new native(); | |
| 32 new negate(); | |
| 33 new operator(); | |
| 34 new set(); | |
| 35 new source(); | |
| 36 new static(); | |
| 37 } | |
| 38 } | |
| 39 | |
| 40 | |
| 41 main() { | |
| 42 PseudoKWClassTest.testMain(); | |
| 43 } | |
| OLD | NEW |