8515f7e2b5
* Also always test for isWriteAccess and isDefinition
14 lines
568 B
TypeScript
14 lines
568 B
TypeScript
/// <reference path='fourslash.ts'/>
|
|
|
|
//// interface interface1 extends interface1 {
|
|
//// [|{| "isWriteAccess": true, "isDefinition": true |}doStuff|](): void; // r0
|
|
//// [|{| "isWriteAccess": true, "isDefinition": true |}propName|]: string; // r1
|
|
//// }
|
|
////
|
|
//// var v: interface1;
|
|
//// v.[|doStuff|](); // r2
|
|
//// v.[|propName|]; // r3
|
|
|
|
const [r0, r1, r2, r3] = test.ranges();
|
|
verify.singleReferenceGroup("(method) interface1.doStuff(): void", [r0, r2]);
|
|
verify.singleReferenceGroup("(property) interface1.propName: string", [r1, r3]);
|