TypeScript/tests/cases/fourslash/referencesForStringLiteralPropertyNames3.ts

11 lines
393 B
TypeScript
Raw Normal View History

2015-03-02 23:41:44 +01:00
/// <reference path='fourslash.ts'/>
2014-08-21 09:13:29 +02:00
////class Foo2 {
2019-06-13 21:25:02 +02:00
//// [|get "[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}42|]"() { return 0; }|]
//// [|set [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 2 |}42|](n) { }|]
2014-08-21 09:13:29 +02:00
////}
////
////var y: Foo2;
////y[[|42|]];
2015-03-02 23:41:44 +01:00
verify.singleReferenceGroup('(property) Foo2["42"]: number', "42");