TypeScript/tests/cases/compiler/unionSignaturesWithThisParameter.ts

14 lines
199 B
TypeScript
Raw Normal View History

2017-12-20 04:58:28 +01:00
// @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);
}