T id<T>(T t) => t; | |
abstract class CompareBase { | |
operator <(IntFn f); | |
} | |
class Compare extends CompareBase { | |
@override | |
operator <(Object f) => f is TFn; | |
} | |
main() {} | |
test1(CompareBase x) {} | |
typedef IntFn = int Function(int); | |
typedef TFn = T Function<T>(T); |