OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 part of myApp; | |
5 | 4 |
6 class Spoo<T> { | 5 class Spoo<T> { |
7 Spoo() { } | 6 Spoo() { } |
8 Spoo.other() { } | 7 Spoo.other() { } |
9 } | 8 } |
10 | 9 |
11 main() { | 10 main() { |
12 // Static method reference to Other0. | 11 // Static method reference to Other0. |
13 var v = Other0.value(); | 12 var v = Other0.value(); |
14 | 13 |
(...skipping 27 matching lines...) Expand all Loading... |
42 | 41 |
43 int bar() { | 42 int bar() { |
44 // qualified reference | 43 // qualified reference |
45 return super.not_hole.contents; | 44 return super.not_hole.contents; |
46 } | 45 } |
47 } | 46 } |
48 | 47 |
49 // Reference Other4 using it as a type parameter bound. | 48 // Reference Other4 using it as a type parameter bound. |
50 class Bar<T extends Other4> { | 49 class Bar<T extends Other4> { |
51 } | 50 } |
OLD | NEW |