Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2011, 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 | |
| 6 // Using pseudo kw 'operator' as class name is not allowed. | |
| 7 class operator { | |
| 8 } | |
| 9 | |
| 10 class PseudoKWNegativeTest { | |
| 11 | |
| 12 static testMain() { | |
| 13 return 0; | |
| 14 } | |
| 15 } | |
| 16 | |
| 17 | |
| 18 main() { | |
| 19 PseudoKWNegativeTest.testMain(); | |
| 20 } | |
| OLD | NEW |