* Still instantiate the extends clause even when theres a noimplicitany error in js * Only be permissive for JS * In JS, instantiate classes even when they have too many type arguments, instead of returning unknownType
19 lines
310 B
TypeScript
19 lines
310 B
TypeScript
// @allowJs: true
|
|
// @checkJs: true
|
|
// @noEmit: true
|
|
// @noImplicitAny: true
|
|
|
|
// @Filename: /a.d.ts
|
|
declare class A<T> { x: T; }
|
|
|
|
// @Filename: /b.js
|
|
class B extends A {}
|
|
new B().x;
|
|
|
|
/** @augments A */
|
|
class C extends A { }
|
|
new C().x;
|
|
|
|
/** @augments A<number, number, number> */
|
|
class D extends A {}
|
|
new D().x; |