TypeScript/tests/cases/fourslash/findAllRefsInsideWithBlock.ts
Andy Hanson 8515f7e2b5 Change find-all-references tests to test for groups
* Also always test for isWriteAccess and isDefinition
2017-01-31 06:59:16 -08:00

13 lines
378 B
TypeScript

/// <reference path='fourslash.ts'/>
////var [|{| "isWriteAccess": true, "isDefinition": true |}x|] = 0;
////
////with ({}) {
//// var y = x; // Reference of x here should not be picked
//// /*2*/y++; // also reference for y should be ignored
////}
////
////[|{| "isWriteAccess": true |}x|] = [|x|] + 1;
verify.singleReferenceGroup("var x: number");