Skip to content

tuple with const enums doesn't work #4421

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
cevek opened this issue Aug 23, 2015 · 3 comments
Closed

tuple with const enums doesn't work #4421

cevek opened this issue Aug 23, 2015 · 3 comments
Labels
Duplicate An existing issue was already created In Discussion Not yet reached consensus Suggestion An idea for TypeScript

Comments

@cevek
Copy link

cevek commented Aug 23, 2015

const enum Types{ NAME=0, NODE=1 }  
var a: [string, Node];
a[Types.NODE].parentNode; // parentNode does not exists
a[1].parentNode;// that is works fine
@xLama
Copy link

xLama commented Aug 24, 2015

It does not work with no-const enum

@DanielRosenwasser DanielRosenwasser added Suggestion An idea for TypeScript In Discussion Not yet reached consensus labels Aug 24, 2015
@jbondc
Copy link
Contributor

jbondc commented Aug 28, 2015

Duplicate of #3411

@DanielRosenwasser DanielRosenwasser added the Duplicate An existing issue was already created label Aug 28, 2015
@DanielRosenwasser
Copy link
Member

Thanks for catching that @jbondc

@microsoft microsoft locked and limited conversation to collaborators Jun 19, 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 In Discussion Not yet reached consensus Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

4 participants