14 lines
458 B
TypeScript
14 lines
458 B
TypeScript
/// <reference path="fourslash.ts" />
|
|
|
|
// @allowJs: true
|
|
|
|
// @Filename: /a.js
|
|
////function f() {
|
|
//// [|this.[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}x|] = 0;|]
|
|
////}
|
|
////f.prototype.setX = function() {
|
|
//// [|this.[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 2 |}x|] = 1;|]
|
|
////}
|
|
////f.prototype.useX = function() { this.[|x|]; }
|
|
|
|
verify.singleReferenceGroup("(property) f.x: number", "x");
|