// Code generated by convertFourslash; DO NOT EDIT.
// To modify this test, run "npm run makemanual goToDefinitionMethodOverloads"

package fourslash_test

import (
	"testing"

	"github.com/microsoft/typescript-go/internal/fourslash"
	"github.com/microsoft/typescript-go/internal/testutil"
)

func TestGoToDefinitionMethodOverloads(t *testing.T) {
	fourslash.SkipIfFailing(t)
	t.Parallel()
	defer testutil.RecoverAndFail(t, "Panic on fourslash test")
	const content = `class MethodOverload {
    static [|/*staticMethodOverload1*/method|]();
    static /*staticMethodOverload2*/method(foo: string);
    static /*staticMethodDefinition*/method(foo?: any) { }
    public [|/*instanceMethodOverload1*/method|](): any;
    public /*instanceMethodOverload2*/method(foo: string);
    public /*instanceMethodDefinition*/method(foo?: any) { return "foo" }
}
// static method
MethodOverload.[|/*staticMethodReference1*/method|]();
MethodOverload.[|/*staticMethodReference2*/method|]("123");
// instance method
var methodOverload = new MethodOverload();
methodOverload.[|/*instanceMethodReference1*/method|]();
methodOverload.[|/*instanceMethodReference2*/method|]("456");`
	f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
	defer done()
	f.VerifyBaselineGoToDefinition(t, true, "staticMethodReference1", "staticMethodReference2", "instanceMethodReference1", "instanceMethodReference2", "staticMethodOverload1", "instanceMethodOverload1")
}
