12 lines
411 B
TypeScript
12 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");
|