18 lines
472 B
JavaScript
18 lines
472 B
JavaScript
|
//// [enumMemberResolution.ts]
|
||
|
enum Position2 {
|
||
|
IgnoreRulesSpecific = 0
|
||
|
}
|
||
|
var x = IgnoreRulesSpecific. // error
|
||
|
var y = 1;
|
||
|
var z = Position2.IgnoreRulesSpecific; // no error
|
||
|
|
||
|
|
||
|
//// [enumMemberResolution.js]
|
||
|
var Position2;
|
||
|
(function (Position2) {
|
||
|
Position2[Position2["IgnoreRulesSpecific"] = 0] = "IgnoreRulesSpecific";
|
||
|
})(Position2 || (Position2 = {}));
|
||
|
var x = IgnoreRulesSpecific.; // error
|
||
|
var y = 1;
|
||
|
var z = 0 /* IgnoreRulesSpecific */; // no error
|