mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
13 lines
326 B
TypeScript
13 lines
326 B
TypeScript
//// [tests/cases/compiler/classDeclarationCheckUsedBeforeDefinitionInItself.ts] ////
|
|
|
|
//// [classDeclarationCheckUsedBeforeDefinitionInItself.ts]
|
|
class C3 {
|
|
static intance = new C3(); // ok
|
|
}
|
|
|
|
//// [classDeclarationCheckUsedBeforeDefinitionInItself.js]
|
|
"use strict";
|
|
class C3 {
|
|
}
|
|
C3.intance = new C3(); // ok
|