Skip to content

combinatorial explosion of recursive unions definitions. #18754

Closed
@sledorze

Description

@sledorze

TypeScript Version: 2.5.2

Code

type A = { tag: 'a', pa: ALL}
type B = { tag: 'b', pb: ALL}
type C = { tag: 'c', pc: ALL}
type D = { tag: 'd', pd: ALL}
type E = { tag: 'e', pe: ALL}
type ALL = A | B | C | D | E

Expected behavior:

When hovering on pa ... pe members, we see a few types, ideally just 'ALL'.

Actual behavior:

When hovering on pa ... pe members, we see an explosion of types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions