2015-02-03 00:30:33 +01:00
|
|
|
//// [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;
|
2015-03-04 17:17:18 +01:00
|
|
|
var z = Position2.IgnoreRulesSpecific; // no error
|