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
6 lines
170 B
TypeScript
6 lines
170 B
TypeScript
/// <reference path='fourslash.ts'/>
|
|
|
|
////function f<T>(a: T): T { return null; }
|
|
////f(/**/
|
|
|
|
verify.signatureHelp({ marker: "", text: "f(a: unknown): unknown" });
|