21 lines
513 B
TypeScript
21 lines
513 B
TypeScript
/// <reference path="fourslash.ts"/>
|
|
|
|
////interface I { x1: number; x2: string }
|
|
////function f(cb: (ev: I) => any) { }
|
|
////f(({/*1*/}) => 0);
|
|
|
|
////[<I>null].reduce(({/*2*/}, b) => b);
|
|
|
|
////interface Foo {
|
|
//// m(x: { x1: number, x2: number }): void;
|
|
//// prop: I;
|
|
////}
|
|
////let x: Foo = {
|
|
//// m({ /*3*/ }) {
|
|
//// },
|
|
//// get prop(): I { return undefined; },
|
|
//// set prop({ /*4*/ }) {
|
|
//// }
|
|
////};
|
|
|
|
verify.completions({ marker: test.markers(), exact: ["x1", "x2"] });
|