Skip to content

Flow Maximum Call stack exceeded on recursive type structures #427

Closed
@FermiDirak

Description

@FermiDirak

Likely related to #215. Recursive type structs cause a maximum call-stack exceeded error when parsing with Flow.

import * as React from "react";

type Identity<T> = T;

type Props<T> = {
  prop: Identity<T>
};

export default function MyComponent<T>(props: Props<T>) {
  return <div/>
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions