Skip to content

Enum References Not Captured #21

@chadhietala

Description

@chadhietala

Description

Given an export item that uses an enum property in the assigned position the value is lost.

Failing Spec

enum A {
  bar = 1
}

export enum B {
  bar = A.bar
  bizz = 2
}

export const a = A.bar;

Playground Link

https://structured-types.vercel.app/?code=%22enum%20A%20%7B%5Cn%20%20bar%20%3D%201%5Cn%7D%5Cn%5Cnexport%20enum%20B%20%7B%5Cn%20%20bar%20%3D%20A.bar%5Cn%20%20bizz%20%3D%202%5Cn%7D%5Cn%5Cnexport%20const%20a%20%3D%20A.bar%3B%22&parseOptions=%7B%22collectHelpers%22%3Atrue%7D

Expectation

The intrinsic type or value should be emitted

Screen Shot 2022-05-26 at 8 42 08 AM

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