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

18 lines
493 B
TypeScript

///<reference path="fourslash.ts" />
// In an inferred class, we can rename successfully
// @allowNonTsExtensions: true
// @Filename: Foo.js
//// class Foo {
//// constructor() {
//// [|this.[|{| "contextRangeIndex": 0 |}union|] = 'foo';|]
//// [|this.[|{| "contextRangeIndex": 2 |}union|] = 100;|]
//// }
//// method() { return this.[|union|]; }
//// }
//// var x = new Foo();
//// x.[|union|];
verify.rangesWithSameTextAreRenameLocations("union");