16450a027a
* 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
23 lines
459 B
TypeScript
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>"
|
|
});
|