TypeScript/tests/cases/fourslash/genericDerivedTypeAcrossModuleBoundary1.ts
Wesley Wigham 16450a027a
Change the default type parameter constraints and defaults to unknown from {} (#30637)
* Change the default type parameter constraint and default to unknown from {}

* Relax unknown checking outside of strictNullChecks a bit

* Increase strictness on index signatures with type `unknown` so inference doesnt change surprisingly

* Remove redundant switch
2019-04-04 12:25:15 -07:00

23 lines
459 B
TypeScript

/// <reference path='fourslash.ts'/>
////module M {
//// export class C1 { }
//// export class C2<T> { }
////}
////var c = new M.C2<number>();
////module N {
//// export class D1 extends M.C1 { }
//// export class D2<T> extends M.C2<T> { }
////}
////var n = new N.D1();
////var /*1*/n2 = new N.D2<number>();
////var /*2*/n3 = new N.D2();
verify.quickInfos({
1: "var n2: N.D2<number>",
2: "var n3: N.D2<unknown>"
});