Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

Non-recursive types are treated as recursive #492

Closed
johnridesabike opened this issue Jan 29, 2021 · 0 comments · Fixed by #498
Closed

Non-recursive types are treated as recursive #492

johnridesabike opened this issue Jan 29, 2021 · 0 comments · Fixed by #498

Comments

@johnridesabike
Copy link

johnridesabike commented Jan 29, 2021

ReScript syntax, so types are non-recursive by default:

@gentype
type t = int

module M = {
  @gentype
  type t = array<t>
}

Outputs:

// tslint:disable-next-line:interface-over-type-literal
export type t = number;

// tslint:disable-next-line:interface-over-type-literal
export type M_t = M_t[]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant