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

Side by Side Diff: tests/language/regress_21912_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
« no previous file with comments | « tests/language/regress_21793_test.dart ('k') | tests/language/regress_22936_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 // Regression test for issue 21912. 5 // Regression test for issue 21912.
6 6
7 class A {} 7 class A {}
8
9 class B extends A {} 8 class B extends A {}
10 9
11 typedef T Function2<S, T>(S z); 10 typedef T Function2<S, T>(S z);
12 typedef B AToB(A x); 11 typedef B AToB(A x);
13 typedef A BToA(B x); 12 typedef A BToA(B x);
14 13
15 void main() { 14 void main() {
16 { 15 {
17 Function2<Function2<A, B>, Function2<B, A>> t1; 16 Function2<Function2<A, B>, Function2<B, A>> t1;
18 Function2<AToB, BToA> t2; 17 Function2<AToB, BToA> t2;
19 Function2<Function2<int, double>, Function2<int, double>> left; 18 Function2<Function2<int, double>, Function2<int, double>> left;
20 left = t1; //# 01: static type warning 19 left = t1; //# 01: static type warning
21 left = t2; //# 02: static type warning 20 left = t2; //# 02: static type warning
22 } 21 }
23 } 22 }
OLDNEW
« no previous file with comments | « tests/language/regress_21793_test.dart ('k') | tests/language/regress_22936_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698