Closed
Description
TypeScript Version: 2.7.0-dev.201xxxxx
Code
As mentioned earlier by @MadaraUchiha and others, why can we do the following?
const Foo = 0;
enum MyEnum {
FooValue = Foo,
}
But not:
const Foo = "0";
enum MyEnum {
FooValue = Foo,
}
It should be either both are valid, or none, this looks like an inconsistency in Typescript.