11 lines
360 B
Plaintext
11 lines
360 B
Plaintext
==== tests/cases/compiler/enumConflictsWithGlobalIdentifier.ts (2 errors) ====
|
|
enum Position {
|
|
IgnoreRulesSpecific = 0,
|
|
}
|
|
var x = IgnoreRulesSpecific.
|
|
~~~~~~~~~~~~~~~~~~~
|
|
!!! error TS2304: Cannot find name 'IgnoreRulesSpecific'.
|
|
var y = Position.IgnoreRulesSpecific;
|
|
~
|
|
!!! error TS1005: ',' expected.
|
|
|