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

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

Issue 1635763003: Restore old supermixin functionality to shared language tests. Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
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 // SharedOptions=--supermixin
4 5
5 import "package:expect/expect.dart"; 6 import "package:expect/expect.dart";
6 7
7 class M { 8 class M {
8 } 9 }
9 10
10 class P0 { 11 class P0 {
11 foo() { 12 foo() {
12 super.toString(); 13 super.toString();
13 14
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 class E = Object with M, P1; 57 class E = Object with M, P1;
57 class F = Object with P2, M; 58 class F = Object with P2, M;
58 59
59 main() { 60 main() {
60 var p1 = new P1(); 61 var p1 = new P1();
61 var p2 = new P2(); 62 var p2 = new P2();
62 Expect.equals(87, p1.bar()); 63 Expect.equals(87, p1.bar());
63 p1.test(); 64 p1.test();
64 Expect.equals(99, p2.baz()); 65 Expect.equals(99, p2.baz());
65 } 66 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698