mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
22 lines
406 B
TypeScript
22 lines
406 B
TypeScript
//// [tests/cases/compiler/classFunctionMerging2.ts] ////
|
|
|
|
//// [classFunctionMerging2.ts]
|
|
declare abstract class A {
|
|
constructor(p: number);
|
|
a: number;
|
|
}
|
|
|
|
declare function B(p: string): B;
|
|
declare class B extends A {
|
|
constructor(p: string);
|
|
b: number;
|
|
}
|
|
|
|
let b = new B("Hey")
|
|
console.log(b.a)
|
|
|
|
//// [classFunctionMerging2.js]
|
|
"use strict";
|
|
let b = new B("Hey");
|
|
console.log(b.a);
|