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

Side by Side Diff: tests/language/mixin_super_constructor_positionals_test.dart

Issue 2770063002: Revert "Format all multitests" (Closed)
Patch Set: Created 3 years, 9 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 4
5 import "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 6
7 class Base { 7 class Base {
8 int i, j; 8 int i, j;
9 Base.ctor( 9 Base.ctor(int this.i,
10 int this.i,
11 [ // //# 01: compile-time error 10 [ // //# 01: compile-time error
12 int this.j 11 int this.j
13 ] // //# 01: continued 12 ] // //# 01: continued
14 ); 13 );
15 } 14 }
16 15
17 abstract class M { 16 abstract class M {
18 get i; 17 get i;
19 get j; 18 get j;
20 int k = 42; 19 int k = 42;
21 foo() => i + j; 20 foo() => i + j;
22 } 21 }
23 22
24 class C extends Base with M { 23 class C extends Base with M {
25 int l = 131; 24 int l = 131;
26 C.foo() : super.ctor(1, 13); 25 C.foo() : super.ctor(1, 13);
27 C.bar() : super.ctor(1); // //# 01: continued 26 C.bar() : super.ctor(1); // //# 01: continued
28 } 27 }
29 28
30 main() { 29 main() {
31 C c1 = new C.foo(); 30 C c1 = new C.foo();
32 Expect.equals(1, c1.i); 31 Expect.equals(1, c1.i);
33 Expect.equals(13, c1.j); 32 Expect.equals(13, c1.j);
34 Expect.equals(14, c1.foo()); 33 Expect.equals(14, c1.foo());
35 Expect.equals(42, c1.k); 34 Expect.equals(42, c1.k);
36 Expect.equals(131, c1.l); 35 Expect.equals(131, c1.l);
37 C c2 = new C.bar(); // //# 01: continued 36 C c2 = new C.bar(); // //# 01: continued
38 } 37 }
OLDNEW
« no previous file with comments | « tests/language/mixin_super_constructor_named_test.dart ('k') | tests/language/mixin_supertype_subclass2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698