mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
28 lines
865 B
Plaintext
28 lines
865 B
Plaintext
//// [tests/cases/compiler/constDeclarations.ts] ////
|
|
|
|
=== constDeclarations.ts ===
|
|
// No error
|
|
const c1 = false;
|
|
>c1 : Symbol(c1, Decl(constDeclarations.ts, 1, 5))
|
|
|
|
const c2: number = 23;
|
|
>c2 : Symbol(c2, Decl(constDeclarations.ts, 2, 5))
|
|
|
|
const c3 = 0, c4 :string = "", c5 = null;
|
|
>c3 : Symbol(c3, Decl(constDeclarations.ts, 3, 5))
|
|
>c4 : Symbol(c4, Decl(constDeclarations.ts, 3, 13))
|
|
>c5 : Symbol(c5, Decl(constDeclarations.ts, 3, 30))
|
|
|
|
|
|
for(const c4 = 0; c4 < 9; ) { break; }
|
|
>c4 : Symbol(c4, Decl(constDeclarations.ts, 6, 9))
|
|
>c4 : Symbol(c4, Decl(constDeclarations.ts, 6, 9))
|
|
|
|
|
|
for(const c5 = 0, c6 = 0; c5 < c6; ) { break; }
|
|
>c5 : Symbol(c5, Decl(constDeclarations.ts, 9, 9))
|
|
>c6 : Symbol(c6, Decl(constDeclarations.ts, 9, 17))
|
|
>c5 : Symbol(c5, Decl(constDeclarations.ts, 9, 9))
|
|
>c6 : Symbol(c6, Decl(constDeclarations.ts, 9, 17))
|
|
|