15 lines
458 B
TypeScript
15 lines
458 B
TypeScript
/// <reference path='fourslash.ts'/>
|
|
|
|
// Note: Giving the functions two parameters means that the checker cannot resolve their signatures normally,
|
|
// so it makes a best guess.
|
|
|
|
////interface I { x: number; y: number; }
|
|
////
|
|
////declare function f<T>(x: T, y: number): void;
|
|
////f<I>({ /*f*/ });
|
|
////
|
|
////declare function g<T>(x: keyof T, y: number): void;
|
|
////g<I>("/*g*/");
|
|
|
|
verify.completions({ marker: test.markers(), exact: ["x", "y"] });
|