| library; |
| // |
| // Problems in library: |
| // |
| // pkg/front_end/testcases/general/issue44476.dart:7:5: Error: Type argument 'num' doesn't conform to the bound 'int' of the type variable 'X' on 'A'. |
| // Try changing type arguments so that they conform to the bounds. |
| // foo(A<num> x) { |
| // ^ |
| // pkg/front_end/testcases/general/issue44476.dart:5:9: Context: This is the type variable whose bound isn't conformed to. |
| // class A<X extends int> {} |
| // ^ |
| // |
| import self as self; |
| import "dart:core" as core; |
| |
| class A<X extends core::int> extends core::Object { |
| synthetic constructor •() → self::A<self::A::X> |
| ; |
| } |
| static method foo(self::A<core::num> x) → dynamic |
| ; |
| static method main() → dynamic |
| ; |