Closed
Description
Hi,
The documentation says
It is a compile time error for constant enum expressions to be evaluated to NaN or Infinity.
But the below code does not throw any compile time error
enum FMixed {
Data1 = 10 + 0.0 / 0.0,
Data2 = 0 / 0,
Data3 = 10 / 0.0
}
console.log("FMixed.Data1 is "+FMixed.Data1);
TypeScript Version is 2.7.1