2018-03-16 19:35:51 +01:00
|
|
|
/// <reference path="fourslash.ts" />
|
|
|
|
|
|
|
|
// @allowJs: true
|
|
|
|
|
|
|
|
// @Filename: /a.js
|
|
|
|
////function f() {
|
2019-06-13 21:25:02 +02:00
|
|
|
//// [|this.[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}x|] = 0;|]
|
2018-03-16 19:35:51 +01:00
|
|
|
////}
|
|
|
|
////f.prototype.setX = function() {
|
2019-06-13 21:25:02 +02:00
|
|
|
//// [|this.[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 2 |}x|] = 1;|]
|
2018-03-16 19:35:51 +01:00
|
|
|
////}
|
|
|
|
////f.prototype.useX = function() { this.[|x|]; }
|
|
|
|
|
2019-06-06 18:49:31 +02:00
|
|
|
verify.singleReferenceGroup("(property) f.x: number", "x");
|