2015-07-02 21:20:20 +02:00
|
|
|
/// <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*/
|
|
|
|
|
2018-10-29 18:03:25 +01:00
|
|
|
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 },
|
|
|
|
);
|