mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
31 lines
1.5 KiB
Plaintext
31 lines
1.5 KiB
Plaintext
//// [tests/cases/compiler/enumUsedBeforeDeclaration.ts] ////
|
|
|
|
=== enumUsedBeforeDeclaration.ts ===
|
|
const v: Color = Color.Green;
|
|
>v : Symbol(v, Decl(enumUsedBeforeDeclaration.ts, 0, 5))
|
|
>Color : Symbol(Color, Decl(enumUsedBeforeDeclaration.ts, 1, 40))
|
|
>Color.Green : Symbol(Color.Green, Decl(enumUsedBeforeDeclaration.ts, 2, 17))
|
|
>Color : Symbol(Color, Decl(enumUsedBeforeDeclaration.ts, 1, 40))
|
|
>Green : Symbol(Color.Green, Decl(enumUsedBeforeDeclaration.ts, 2, 17))
|
|
|
|
const v2: ConstColor = ConstColor.Green;
|
|
>v2 : Symbol(v2, Decl(enumUsedBeforeDeclaration.ts, 1, 5))
|
|
>ConstColor : Symbol(ConstColor, Decl(enumUsedBeforeDeclaration.ts, 2, 31))
|
|
>ConstColor.Green : Symbol(ConstColor.Green, Decl(enumUsedBeforeDeclaration.ts, 3, 28))
|
|
>ConstColor : Symbol(ConstColor, Decl(enumUsedBeforeDeclaration.ts, 2, 31))
|
|
>Green : Symbol(ConstColor.Green, Decl(enumUsedBeforeDeclaration.ts, 3, 28))
|
|
|
|
enum Color { Red, Green, Blue }
|
|
>Color : Symbol(Color, Decl(enumUsedBeforeDeclaration.ts, 1, 40))
|
|
>Red : Symbol(Color.Red, Decl(enumUsedBeforeDeclaration.ts, 2, 12))
|
|
>Green : Symbol(Color.Green, Decl(enumUsedBeforeDeclaration.ts, 2, 17))
|
|
>Blue : Symbol(Color.Blue, Decl(enumUsedBeforeDeclaration.ts, 2, 24))
|
|
|
|
const enum ConstColor { Red, Green, Blue }
|
|
>ConstColor : Symbol(ConstColor, Decl(enumUsedBeforeDeclaration.ts, 2, 31))
|
|
>Red : Symbol(ConstColor.Red, Decl(enumUsedBeforeDeclaration.ts, 3, 23))
|
|
>Green : Symbol(ConstColor.Green, Decl(enumUsedBeforeDeclaration.ts, 3, 28))
|
|
>Blue : Symbol(ConstColor.Blue, Decl(enumUsedBeforeDeclaration.ts, 3, 35))
|
|
|
|
|