Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
illegal recursion with generic typeclass #4674
Trying to declare an alias of an alias of a generic typeclass fails with an illegal recursion error. If the first alias was declared using the explicit generic parameter (
type FooObj[T] = object v: T Foo1[T] = FooObj[T] Foo2 = FooObj Foo1x = Foo1 Foo12x = Foo1 | Foo2 Foo2x = Foo2 # Error: illegal recursion in type 'Foo2x'