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

Side by Side Diff: language/src/ConstInit7NegativeTest.dart

Issue 9121014: Fix broken tests: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/tests/
Patch Set: 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 | « language/src/CTConst2Test.dart ('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) 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 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 a method reference is not an acceptable compile time constant 4 // Check that a method reference is not an acceptable compile time constant
5 5 // VMOptions=
6 // VMOptions=--compile_all
vsm 2012/01/06 21:41:42 Is this actually used by the test script?
Ivan Posva 2012/01/06 21:45:15 staine[runtime] ../tools/test.py --verbose languag
6 7
7 topMethod() { } 8 topMethod() { }
8 9
9 class ConstInit7NegativeTest { 10 class ConstInit7NegativeTest {
10 classMethod([var x = 11 classMethod([var x =
11 topMethod // Error: not a compile time const. 12 topMethod // Error: not a compile time const.
12 ]) {} 13 ]) {}
13 } 14 }
14 15
15 main() { 16 main() {
16 new ConstInit7NegativeTest(); 17 (new ConstInit7NegativeTest()).classMethod();
17 } 18 }
OLDNEW
« no previous file with comments | « language/src/CTConst2Test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698