Closed
Description
TypeScript Version: 2.0.2 Release Candidate
Code
enum Place {
Bottom,
Left,
Right,
Top
}
let p: Place = Place.Left;
console.log(p === Place.Left);
console.log(p === Place.Right);
Expected behavior:
true
false
Actual behavior:
error TS2365: Operator '===' cannot be applied to types 'Place.Left' and 'Place.Right'.