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 | 46 implements I |
47 I | |
48 <int> //# 03: continued | 47 <int> //# 03: continued |
49 <num> //# 06: continued | 48 <num> //# 06: continued |
50 <String> //# 07: continued | 49 <String> //# 07: continued |
51 <int> //# 08: continued | 50 <int> //# 08: continued |
52 <int> //# 09: continued | 51 <int> //# 09: continued |
53 <int> //# 10: continued | 52 <int> //# 10: continued |
54 , | 53 , J |
55 J | |
56 <String> //# 08: continued | 54 <String> //# 08: continued |
57 <num> //# 09: continued | 55 <num> //# 09: continued |
58 <num> //# 10: continued | 56 <num> //# 10: continued |
59 { | 57 { |
60 method3(num i) => null; //# 03: continued | 58 method3(num i) => null; //# 03: continued |
61 method5(W w) => null; //# 05: continued | 59 method5(W w) => null; //# 05: continued |
62 method6(int i) => null; //# 06: continued | 60 method6(int i) => null; //# 06: continued |
63 method7(double d) => null; //# 07: continued | 61 method7(double d) => null; //# 07: continued |
64 method8(double d) => null; //# 08: continued | 62 method8(double d) => null; //# 08: continued |
65 } | 63 } |
66 | 64 |
67 class SubClass extends Class { | 65 class SubClass extends Class { |
68 method9(double d) => null; //# 09: continued | 66 method9(double d) => null; //# 09: continued |
69 method10(String s) => null; //# 10: continued | 67 method10(String s) => null; //# 10: continued |
70 } | 68 } |
71 | 69 |
72 main() { | 70 main() { |
73 new SubClass(); | 71 new SubClass(); |
74 } | 72 } |
OLD | NEW |