TypeScript/tests/cases/fourslash/goToDefinitionSourceUnit.ts
Andy Hanson c75f6d0ec7 Add multiple overloads for verify.goToDefinition.
Use explicit pairs `verify.goToDefinition([["a", "b"], ["c", "d"]])` instead of `verify.goToDefinition("a", "b", "c", "d")`.
Also provide an option `verify.goToDefinition({ a: "b", c: "d" })` for cases where the starts are not theirselves lists.
2016-09-02 13:23:45 -07:00

23 lines
491 B
TypeScript

/// <reference path='fourslash.ts'/>
// @Filename: a.ts
//// //MyFile Comments
//// //more comments
//// /// <reference path="so/*unknownFile*/mePath.ts" />
//// /// <reference path="b/*knownFile*/.ts" />
////
//// class clsInOverload {
//// static fnOverload();
//// static fnOverload(foo: string);
//// static fnOverload(foo: any) { }
//// }
////
// @Filename: b.ts
/////*fileB*/
verify.goToDefinition({
unknownFile: [],
knownFile: "fileB"
});