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

Side by Side Diff: tests/language_strong/function_type_parameter2_negative_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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
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 // Test that we detect that a function literal is not 4 // Test that we detect that a function literal is not
5 // a compile time constant. 5 // a compile time constant.
6 6
7 class FunctionTypeParameterNegativeTest { 7 class FunctionTypeParameterNegativeTest {
8
9 static var formatter; 8 static var formatter;
10 9
11 static SetFormatter([String fmt(int i) = (i) => "$i"]) { 10 static SetFormatter([String fmt(int i) = (i) => "$i"]) {
12 formatter = fmt; 11 formatter = fmt;
13 } 12 }
14 13
15 static void testMain() { 14 static void testMain() {
16 SetFormatter(); 15 SetFormatter();
17 } 16 }
18 } 17 }
19 18
20 main() { 19 main() {
21 FunctionTypeParameterNegativeTest.testMain(); 20 FunctionTypeParameterNegativeTest.testMain();
22 } 21 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698