* 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
6 lines
147 B
TypeScript
6 lines
147 B
TypeScript
/// <reference path='fourslash.ts'/>
|
|
|
|
////declare function f<T>(x: number): T;
|
|
////const x/**/ = f();
|
|
|
|
verify.quickInfoAt("", "const x: unknown");
|