mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
377 B
TypeScript
16 lines
377 B
TypeScript
//// [tests/cases/compiler/classDeclarationCheckUsedBeforeDefinitionInFunctionDeclaration.ts] ////
|
|
|
|
//// [classDeclarationCheckUsedBeforeDefinitionInFunctionDeclaration.ts]
|
|
function f() {
|
|
new C2(); // OK
|
|
}
|
|
class C2 { }
|
|
|
|
//// [classDeclarationCheckUsedBeforeDefinitionInFunctionDeclaration.js]
|
|
"use strict";
|
|
function f() {
|
|
new C2(); // OK
|
|
}
|
|
class C2 {
|
|
}
|