23 lines
587 B
TypeScript
23 lines
587 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
////interface I<T> {
|
|
//// [/*1*/]: T;
|
|
//// [/*2*/]: T;
|
|
////}
|
|
////
|
|
////class C {
|
|
//// [/*3*/]: string;
|
|
//// [str/*4*/: string]: number;
|
|
////}
|
|
////
|
|
////type T = {
|
|
//// [x/*5*/yz: number]: boolean;
|
|
//// [/*6*/
|
|
|
|
const exact = completion.globalsPlus(["C"]);
|
|
verify.completions(
|
|
{ marker: ["1", "2", "3", "6"], exact, isNewIdentifierLocation: true },
|
|
{ marker: "4", exact: ["str", ...exact], isNewIdentifierLocation: true },
|
|
{ marker: "5", exact: ["xyz", ...exact], isNewIdentifierLocation: true },
|
|
);
|