OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 class A<T> { | 5 class A<T> { |
6 method1(T t) => null; //# 01: ok | 6 method1(T t) => null; //# 01: ok |
7 method2(T t) => null; //# 02: ok | 7 method2(T t) => null; //# 02: ok |
8 method4(T t) => null; //# 04: static type warning | 8 method4(T t) => null; //# 04: static type warning |
9 method5(T t) => null; //# 05: ok | 9 method5(T t) => null; //# 05: ok |
10 method7(T t) => null; //# 07: static type warning | 10 method7(T t) => null; //# 07: static type warning |
(...skipping 25 matching lines...) Expand all Loading... |
36 method8(V v) => null; //# 08: continued | 36 method8(V v) => null; //# 08: continued |
37 method9(V v) => null; //# 09: continued | 37 method9(V v) => null; //# 09: continued |
38 method10(V v) => null; //# 10: continued | 38 method10(V v) => null; //# 10: continued |
39 } | 39 } |
40 | 40 |
41 abstract class Class<W> extends B | 41 abstract class Class<W> extends B |
42 <double> //# 03: continued | 42 <double> //# 03: continued |
43 <W> //# 05: continued | 43 <W> //# 05: continued |
44 <W> //# 06: continued | 44 <W> //# 06: continued |
45 <int> //# 07: continued | 45 <int> //# 07: continued |
46 implements I | 46 implements |
| 47 I |
47 <int> //# 03: continued | 48 <int> //# 03: continued |
48 <num> //# 06: continued | 49 <num> //# 06: continued |
49 <String> //# 07: continued | 50 <String> //# 07: continued |
50 <int> //# 08: continued | 51 <int> //# 08: continued |
51 <int> //# 09: continued | 52 <int> //# 09: continued |
52 <int> //# 10: continued | 53 <int> //# 10: continued |
53 , J | 54 , |
| 55 J |
54 <String> //# 08: continued | 56 <String> //# 08: continued |
55 <num> //# 09: continued | 57 <num> //# 09: continued |
56 <num> //# 10: continued | 58 <num> //# 10: continued |
57 { | 59 { |
58 method3(num i) => null; //# 03: continued | 60 method3(num i) => null; //# 03: continued |
59 method5(W w) => null; //# 05: continued | 61 method5(W w) => null; //# 05: continued |
60 method6(int i) => null; //# 06: continued | 62 method6(int i) => null; //# 06: continued |
61 method7(double d) => null; //# 07: continued | 63 method7(double d) => null; //# 07: continued |
62 method8(double d) => null; //# 08: continued | 64 method8(double d) => null; //# 08: continued |
63 } | 65 } |
64 | 66 |
65 class SubClass extends Class { | 67 class SubClass extends Class { |
66 method9(double d) => null; //# 09: continued | 68 method9(double d) => null; //# 09: continued |
67 method10(String s) => null; //# 10: continued | 69 method10(String s) => null; //# 10: continued |
68 } | 70 } |
69 | 71 |
70 main() { | 72 main() { |
71 new SubClass(); | 73 new SubClass(); |
72 } | 74 } |
OLD | NEW |