TypeScript/tests/cases/fourslash/findAllRefsIndexedAccessTypes.ts

14 lines
420 B
TypeScript
Raw Normal View History

/// <reference path='fourslash.ts' />
////interface I {
2019-06-13 21:25:02 +02:00
//// [|[|{| "isDefinition": true, "contextRangeIndex": 0 |}0|]: number;|]
//// [|[|{| "isDefinition": true, "contextRangeIndex": 2 |}s|]: string;|]
////}
////interface J {
//// a: I[[|0|]],
//// b: I["[|s|]"],
////}
2019-06-06 00:01:34 +02:00
verify.singleReferenceGroup("(property) I[0]: number", "0");
verify.singleReferenceGroup("(property) I.s: string", "s");