Skip to content

Enum Literal Types 2.4.1 #17068

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
acopalipsis opened this issue Jul 10, 2017 · 3 comments
Closed

Enum Literal Types 2.4.1 #17068

acopalipsis opened this issue Jul 10, 2017 · 3 comments
Labels
Duplicate An existing issue was already created

Comments

@acopalipsis
Copy link

enum E {
    A = 1,
    B = "b"
}

let valye: E.A | E.B = 123; // Ok?
@ghost
Copy link

ghost commented Jul 10, 2017

Duplicate of #6131

@ghost ghost added the Duplicate An existing issue was already created label Jul 10, 2017
@acopalipsis
Copy link
Author

acopalipsis commented Jul 10, 2017

@Andy-MS there on the enum in the role of type. I have a question about a Enum Literal Types.

@ghost
Copy link

ghost commented Jul 10, 2017

I can't tell what the question is -- besides the problem of an arbitrary number being assignable to an enum type, which is issue #6131.

@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

1 participant