TypeScript/tests/cases/fourslash/findAllRefsInsideWithBlock.ts
2019-06-13 12:41:21 -07:00

13 lines
411 B
TypeScript

/// <reference path='fourslash.ts'/>
////[|var [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}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", "x");