TypeScript/tests/cases/compiler/intersectionOfMixinConstructorTypeAndNonConstructorType.ts
Matt McCutchen ab8153602a Fix mixin logic to preserve at least one constructor type even when the (#27701)
intersection also contains non-constructor types.

Fixes #17388.
2019-03-12 14:30:43 -07:00

5 lines
96 B
TypeScript

// Repro for #17388
declare let x: {foo: undefined} & {new(...args: any[]): any};
new x();