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

Side by Side Diff: pkg/front_end/testcases/covariant_generic.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 file. 3 // BSD-style license that can be found in the LICENSE file.
4 typedef void Callback<T>(T x); 4 typedef void Callback<T>(T x);
5 5
6 class Foo<T> { 6 class Foo<T> {
7 final T finalField; 7 final T finalField;
8 final Callback<T> callbackField; 8 final Callback<T> callbackField;
9 9
10 T mutableField; 10 T mutableField;
(...skipping 25 matching lines...) Expand all
36 fooNum.method(2.5); 36 fooNum.method(2.5);
37 fooNum.setter = 3; 37 fooNum.setter = 3;
38 fooNum.setter = 2.5; 38 fooNum.setter = 2.5;
39 fooNum.withCallback((num x) {}); 39 fooNum.withCallback((num x) {});
40 fooNum.mutableField = 3; 40 fooNum.mutableField = 3;
41 fooNum.mutableField = 2.5; 41 fooNum.mutableField = 2.5;
42 fooNum.mutableCallbackField(3); 42 fooNum.mutableCallbackField(3);
43 fooNum.mutableCallbackField(2.5); 43 fooNum.mutableCallbackField(2.5);
44 fooNum.mutableCallbackField = (num x) {}; 44 fooNum.mutableCallbackField = (num x) {};
45 } 45 }
OLDNEW
« no previous file with comments | « pkg/front_end/testcases/closure.dart.strong.expect ('k') | pkg/front_end/testcases/covariant_generic.dart.direct.expect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698