TypeScript/tests/cases/fourslash/javaScriptClass3.ts
2017-10-18 15:49:46 -07:00

22 lines
482 B
TypeScript

///<reference path="fourslash.ts" />
// In an inferred class, we can go-to-def successfully
// @allowNonTsExtensions: true
// @Filename: Foo.js
//// class Foo {
//// constructor() {
//// this./*dst1*/alpha = 10;
//// this./*dst2*/beta = 'gamma';
//// }
//// method() { return this.alpha; }
//// }
//// var x = new Foo();
//// x.[|alpha/*src1*/|];
//// x.[|beta/*src2*/|];
verify.goToDefinition({
src1: "dst1",
src2: "dst2"
});