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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/language/language.status ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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 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. 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. 4 // Check that we cannot use a pseudo keyword at the class level code.
5 5
6 // Using pseudo kw 'operator' as class name is not allowed. 6 // Pseudo keywords are not allowed to be used as class names.
7 class operator { 7 class abstract { } /// 01: compile-time error
8 } 8 class factory { } /// 02: compile-time error
9 class get { } /// 03: compile-time error
10 class implements { } /// 04: compile-time error
11 class import { } /// 05: compile-time error
12 class interface { } /// 06: compile-time error
13 class library { } /// 07: compile-time error
14 class native { } /// 08: compile-time error
15 class negate { } /// 09: compile-time error
16 class operator { } /// 10: compile-time error
17 class set { } /// 11: compile-time error
18 class source { } /// 12: compile-time error
19 class static { } /// 13: compile-time error
gbracha 2012/01/11 19:27:01 Below is the latest list of built-in identifiers f
9 20
10 class PseudoKWNegativeTest { 21 main() { }
11
12 static testMain() {
13 return 0;
14 }
15 }
16
17
18 main() {
19 PseudoKWNegativeTest.testMain();
20 }
OLDNEW
« 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