mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
13 lines
528 B
Plaintext
13 lines
528 B
Plaintext
//// [tests/cases/compiler/classDeclarationCheckUsedBeforeDefinitionInFunctionDeclaration.ts] ////
|
|
|
|
=== classDeclarationCheckUsedBeforeDefinitionInFunctionDeclaration.ts ===
|
|
function f() {
|
|
>f : Symbol(f, Decl(classDeclarationCheckUsedBeforeDefinitionInFunctionDeclaration.ts, 0, 0))
|
|
|
|
new C2(); // OK
|
|
>C2 : Symbol(C2, Decl(classDeclarationCheckUsedBeforeDefinitionInFunctionDeclaration.ts, 2, 1))
|
|
}
|
|
class C2 { }
|
|
>C2 : Symbol(C2, Decl(classDeclarationCheckUsedBeforeDefinitionInFunctionDeclaration.ts, 2, 1))
|
|
|