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

Side by Side Diff: tests/language_strong/mixin_illegal_super_use_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 M {} 7 class M {
8 }
8 9
9 class P0 { 10 class P0 {
10 foo() { 11 foo() {
11 super.toString(); // //# 01: compile-time error 12 super.toString(); // //# 01: compile-time error
12 super.foo(); // //# 02: compile-time error 13 super.foo(); // //# 02: compile-time error
13 super.bar = 100; // //# 03: compile-time error 14 super.bar = 100; // //# 03: compile-time error
14 15
15 void inner() { 16 void inner() {
16 super.toString(); // //# 04: compile-time error 17 super.toString(); // //# 04: compile-time error
17 super.foo(); // //# 05: compile-time error 18 super.foo(); // //# 05: compile-time error
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 class E = Object with M, P1; 62 class E = Object with M, P1;
62 class F = Object with P2, M; 63 class F = Object with P2, M;
63 64
64 main() { 65 main() {
65 var p1 = new P1(); 66 var p1 = new P1();
66 var p2 = new P2(); 67 var p2 = new P2();
67 Expect.equals(87, p1.bar()); 68 Expect.equals(87, p1.bar());
68 p1.test(); 69 p1.test();
69 Expect.equals(99, p2.baz()); 70 Expect.equals(99, p2.baz());
70 } 71 }
OLDNEW
« no previous file with comments | « tests/language_strong/mixin_illegal_object_test.dart ('k') | tests/language_strong/mixin_illegal_superclass_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698