2016-03-21 16:26:56 +01:00
|
|
|
///<reference path="fourslash.ts" />
|
|
|
|
|
2017-05-05 01:13:32 +02:00
|
|
|
// In an inferred class, we can go-to-def successfully
|
2016-03-21 16:26:56 +01:00
|
|
|
|
|
|
|
// @allowNonTsExtensions: true
|
|
|
|
// @Filename: Foo.js
|
|
|
|
//// class Foo {
|
|
|
|
//// constructor() {
|
2017-05-05 01:13:32 +02:00
|
|
|
//// this./*dst1*/alpha = 10;
|
|
|
|
//// this./*dst2*/beta = 'gamma';
|
2016-03-21 16:26:56 +01:00
|
|
|
//// }
|
|
|
|
//// method() { return this.alpha; }
|
|
|
|
//// }
|
|
|
|
//// var x = new Foo();
|
2017-10-19 00:49:46 +02:00
|
|
|
//// x.[|alpha/*src1*/|];
|
|
|
|
//// x.[|beta/*src2*/|];
|
2016-03-21 16:26:56 +01:00
|
|
|
|
2016-09-02 21:47:26 +02:00
|
|
|
verify.goToDefinition({
|
|
|
|
src1: "dst1",
|
|
|
|
src2: "dst2"
|
|
|
|
});
|