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

Side by Side Diff: pkg/front_end/testcases/rasta/mixin_library.dart

Issue 2825063002: Move kernel baseline tests to front_end. (Closed)
Patch Set: 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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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.md file. 3 // BSD-style license that can be found in the LICENSE.md file.
4 4
5 library test.mixin_library; 5 library test.mixin_library;
6 6
7 f() => 2; 7 f() => 2;
8 8
9 V() => 87; 9 V() => 87;
10 10
11 _private() => 117; 11 _private() => 117;
12 12
13 class Mixin<T> { 13 class Mixin<T> {
14 var x = f(), y, z; 14 var x = f(), y, z;
15 T t; 15 T t;
16 foo() => super.foo() + f(); 16 foo() => super.foo() + f();
17 T g(T a) => null; 17 T g(T a) => null;
18 h() => V(); 18 h() => V();
19 l() => _private(); 19 l() => _private();
20 _privateMethod() => 49; 20 _privateMethod() => 49;
21 publicMethod() => _privateMethod(); 21 publicMethod() => _privateMethod();
22 } 22 }
23 23
24 foo(m) => m._privateMethod(); 24 foo(m) => m._privateMethod();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698