| library /*isNonNullableByDefault*/; |
| // |
| // Problems in library: |
| // |
| // pkg/front_end/testcases/nonfunction_type_aliases/issue45491.dart:7:21: Error: Inferred type argument 'A<dynamic>' doesn't conform to the bound 'A<X>' of the type variable 'X' on 'A'. |
| // - 'A' is from 'pkg/front_end/testcases/nonfunction_type_aliases/issue45491.dart'. |
| // Try specifying type arguments explicitly so that they conform to the bounds. |
| // typedef AAlias<X> = A; |
| // ^ |
| // pkg/front_end/testcases/nonfunction_type_aliases/issue45491.dart:5:9: Context: This is the type variable whose bound isn't conformed to. |
| // class A<X extends A<X>> {} |
| // ^ |
| // |
| import self as self; |
| import "dart:core" as core; |
| |
| typedef AAlias<unrelated X extends core::Object? = dynamic> = self::A<self::A<dynamic>>; |
| class A<X extends self::A<self::A::X> = self::A<dynamic>> extends core::Object { |
| synthetic constructor •() → self::A<self::A::X> |
| ; |
| } |
| static method main() → void |
| ; |