| library; |
| // |
| // Problems in library: |
| // |
| // pkg/front_end/testcases/general/type_parameter_usage_in_static_method_in_class.dart:6:12: Error: Can only use type variables in instance methods. |
| // static U foo1() { return null; } |
| // ^ |
| // |
| // pkg/front_end/testcases/general/type_parameter_usage_in_static_method_in_class.dart:7:15: Error: Can only use type variables in instance methods. |
| // static void foo2(U x) { return null; } |
| // ^ |
| // |
| // pkg/front_end/testcases/general/type_parameter_usage_in_static_method_in_class.dart:14:23: Error: Can only use type variables in instance methods. |
| // static U Function() foo8() { return null; } |
| // ^ |
| // |
| // pkg/front_end/testcases/general/type_parameter_usage_in_static_method_in_class.dart:15:27: Error: Can only use type variables in instance methods. |
| // static void Function(U) foo9() { return null; } |
| // ^ |
| // |
| // pkg/front_end/testcases/general/type_parameter_usage_in_static_method_in_class.dart:16:15: Error: Can only use type variables in instance methods. |
| // static void foo10(U Function()) { return null; } |
| // ^ |
| // |
| // pkg/front_end/testcases/general/type_parameter_usage_in_static_method_in_class.dart:19:15: Error: Can only use type variables in instance methods. |
| // static void foo12(void Function(U) b) { return null; } |
| // ^ |
| // |
| // pkg/front_end/testcases/general/type_parameter_usage_in_static_method_in_class.dart:21:15: Error: Can only use type variables in instance methods. |
| // static void foo13(void Function(U b)) { return null; } |
| // ^ |
| // |
| // pkg/front_end/testcases/general/type_parameter_usage_in_static_method_in_class.dart:22:10: Error: Type variables can't be used in static members. |
| // static U foo14 = null; |
| // ^ |
| // |
| import self as self; |
| import "dart:core" as core; |
| |
| class Foo<U extends core::Object* = dynamic> extends core::Object { |
| static field invalid-type foo14; |
| synthetic constructor •() → self::Foo<self::Foo::U*>* |
| ; |
| static method foo1() → dynamic |
| ; |
| static method foo2(generic-covariant-impl dynamic x) → void |
| ; |
| static method foo3() → void |
| ; |
| static method foo8() → () →* dynamic |
| ; |
| static method foo9() → (dynamic) →* void |
| ; |
| static method foo10(generic-covariant-impl () →* dynamic Function) → void |
| ; |
| static method foo11((dynamic) →* void Function) → void |
| ; |
| static method foo12((dynamic) →* void b) → void |
| ; |
| static method foo13((dynamic) →* void Function) → void |
| ; |
| } |
| static method main() → dynamic |
| ; |