mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
24 lines
367 B
TypeScript
24 lines
367 B
TypeScript
//// [tests/cases/compiler/classExtensionNameOutput.ts] ////
|
|
|
|
//// [classExtensionNameOutput.ts]
|
|
class A {}
|
|
if (true) {
|
|
class B extends A {}
|
|
|
|
const foo = function () {
|
|
new B();
|
|
}
|
|
}
|
|
|
|
//// [classExtensionNameOutput.js]
|
|
"use strict";
|
|
class A {
|
|
}
|
|
if (true) {
|
|
class B extends A {
|
|
}
|
|
const foo = function () {
|
|
new B();
|
|
};
|
|
}
|