deaa58b1a0
Conflicts: tests/baselines/reference/enumConflictsWithGlobalIdentifier.errors.txt tests/baselines/reference/enumMemberResolution.errors.txt
16 lines
No EOL
612 B
Text
16 lines
No EOL
612 B
Text
tests/cases/compiler/enumMemberResolution.ts(4,28): error TS1003: Identifier expected.
|
|
tests/cases/compiler/enumMemberResolution.ts(4,9): error TS2304: Cannot find name 'IgnoreRulesSpecific'.
|
|
|
|
|
|
==== tests/cases/compiler/enumMemberResolution.ts (2 errors) ====
|
|
enum Position2 {
|
|
IgnoreRulesSpecific = 0
|
|
}
|
|
var x = IgnoreRulesSpecific. // error
|
|
~
|
|
!!! error TS1003: Identifier expected.
|
|
~~~~~~~~~~~~~~~~~~~
|
|
!!! error TS2304: Cannot find name 'IgnoreRulesSpecific'.
|
|
var y = 1;
|
|
var z = Position2.IgnoreRulesSpecific; // no error
|
|
|