TypeScript/tests/cases/fourslash/javaScriptClass2.ts

18 lines
410 B
TypeScript

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