2020-03-18 00:16:28 +01:00
|
|
|
/// <reference path="fourslash.ts" />
|
|
|
|
|
|
|
|
// @allowJs: true
|
|
|
|
// @checkJs: true
|
|
|
|
// @filename: foo.js
|
|
|
|
////const Bar;
|
2020-05-14 01:14:46 +02:00
|
|
|
////const Foo = /*def*/Bar = function () {}
|
2020-03-18 00:16:28 +01:00
|
|
|
////Foo.prototype.bar = function() {}
|
|
|
|
////new [|Foo/*ref*/|]();
|
|
|
|
|
|
|
|
goTo.file("foo.js");
|
2020-05-14 01:14:46 +02:00
|
|
|
verify.goToDefinition("ref", "def");
|