TypeScript/tests/cases/fourslash/findAllRefsForMappedType.ts

10 lines
498 B
TypeScript
Raw Normal View History

/// <reference path='fourslash.ts'/>
2019-06-13 21:25:02 +02:00
////interface T { [|[|{| "isDefinition": true, "contextRangeIndex": 0 |}a|]: number|] };
2017-01-25 23:15:06 +01:00
////type U = { [K in keyof T]: string };
////type V = { [K in keyof U]: boolean };
2019-06-13 21:25:02 +02:00
////const u: U = { [|[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 2 |}a|]: ""|] }
////const v: V = { [|[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 4 |}a|]: true|] }
2019-06-06 00:01:34 +02:00
verify.singleReferenceGroup("(property) T.a: number", "a");