TypeScript/tests/cases/compiler/unionSignaturesWithThisParameter.ts
2017-12-19 19:58:28 -08:00

14 lines
199 B
TypeScript

// @strict: true
// Repro from #20802
function x<T>(ctor: {
(this: {}, v: T): void;
new(v: T): void;
} | {
(v: T): void;
new(v: T): void;
}, t: T) {
new ctor(t);
}