| 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 library test.relation_subclass; | 5 library test.relation_subclass; |
| 6 | 6 |
| 7 import "dart:mirrors"; | 7 import "dart:mirrors"; |
| 8 | 8 |
| 9 import "package:expect/expect.dart"; | 9 import "package:expect/expect.dart"; |
| 10 | 10 |
| 11 class Superclass {} | 11 class Superclass {} |
| 12 |
| 12 class Subclass1 extends Superclass {} | 13 class Subclass1 extends Superclass {} |
| 14 |
| 13 class Subclass2 extends Superclass {} | 15 class Subclass2 extends Superclass {} |
| 14 | 16 |
| 15 typedef bool NumberPredicate(num x); | 17 typedef bool NumberPredicate(num x); |
| 16 typedef bool IntegerPredicate(int x); | 18 typedef bool IntegerPredicate(int x); |
| 17 typedef bool DoublePredicate(double x); | 19 typedef bool DoublePredicate(double x); |
| 18 | 20 |
| 19 typedef num NumberGenerator(); | 21 typedef num NumberGenerator(); |
| 20 typedef int IntegerGenerator(); | 22 typedef int IntegerGenerator(); |
| 21 typedef double DoubleGenerator(); | 23 typedef double DoubleGenerator(); |
| 22 | 24 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 // IntPredRef.isSubclassOf(Func); | 103 // IntPredRef.isSubclassOf(Func); |
| 102 // DubPredRef.isSubclassOf(Func); | 104 // DubPredRef.isSubclassOf(Func); |
| 103 // NumGenRef.isSubclassOf(Func); | 105 // NumGenRef.isSubclassOf(Func); |
| 104 // IntGenRef.isSubclassOf(Func); | 106 // IntGenRef.isSubclassOf(Func); |
| 105 // DubGenRef.isSubclassOf(Func); | 107 // DubGenRef.isSubclassOf(Func); |
| 106 } | 108 } |
| 107 | 109 |
| 108 main() { | 110 main() { |
| 109 test(currentMirrorSystem()); | 111 test(currentMirrorSystem()); |
| 110 } | 112 } |
| OLD | NEW |