OLD | NEW |
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 // SharedOptions=--supermixin | |
5 | 4 |
6 import "package:expect/expect.dart"; | 5 import "package:expect/expect.dart"; |
7 | 6 |
8 class MS<T> { | 7 class MS<T> { |
9 foo() { | 8 foo() { |
10 return "MS<$T>.foo\n"; | 9 return "MS<$T>.foo\n"; |
11 } | 10 } |
12 } | 11 } |
13 | 12 |
14 class M<T> extends MS<List<T>> { | 13 class M<T> extends MS<List<T>> { |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 "N<bool>.foo\n" | 71 "N<bool>.foo\n" |
73 "MNA2<int, String, bool>.foo\n", | 72 "MNA2<int, String, bool>.foo\n", |
74 new MNA2<int, String, bool>().foo()); | 73 new MNA2<int, String, bool>().foo()); |
75 Expect.equals("S<List<int>>.foo\n" | 74 Expect.equals("S<List<int>>.foo\n" |
76 "M<Map<int, String>>.foo\n" | 75 "M<Map<int, String>>.foo\n" |
77 "N<bool>.foo\n" | 76 "N<bool>.foo\n" |
78 "MNA3<int, String, bool>.foo\n", | 77 "MNA3<int, String, bool>.foo\n", |
79 new MNA3<int, String, bool>().foo()); | 78 new MNA3<int, String, bool>().foo()); |
80 } | 79 } |
81 | 80 |
OLD | NEW |