Closed
Description
openedon Feb 19, 2017
Why does this work:
type Foo = { x: Foo }
but this doesn't:
type Bar<A> = { x: A }
type Foo = Bar<Foo>
// ^^^ Type alias 'Foo' circularly references itself
Shouldn't they be equivalent?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment