Add regression test
This commit is contained in:
parent
c78a6a5cad
commit
2f4c8ebf13
1 changed files with 13 additions and 0 deletions
13
tests/cases/compiler/unionSignaturesWithThisParameter.ts
Normal file
13
tests/cases/compiler/unionSignaturesWithThisParameter.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
// @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);
|
||||
}
|
Loading…
Reference in a new issue