mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
13 lines
493 B
Plaintext
13 lines
493 B
Plaintext
enumUsedBeforeDeclaration.ts(1,18): error TS2450: Enum 'Color' used before its declaration.
|
|
|
|
|
|
==== enumUsedBeforeDeclaration.ts (1 errors) ====
|
|
const v: Color = Color.Green;
|
|
~~~~~
|
|
!!! error TS2450: Enum 'Color' used before its declaration.
|
|
!!! related TS2728 enumUsedBeforeDeclaration.ts:3:6: 'Color' is declared here.
|
|
const v2: ConstColor = ConstColor.Green;
|
|
enum Color { Red, Green, Blue }
|
|
const enum ConstColor { Red, Green, Blue }
|
|
|
|
|