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

package fourslash_test

import (
	"testing"

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

func TestSignatureHelpOnOverloadsDifferentArity2(t *testing.T) {
	fourslash.SkipIfFailing(t)
	t.Parallel()
	defer testutil.RecoverAndFail(t, "Panic on fourslash test")
	const content = `declare function f(s: string);
declare function f(n: number);
declare function f(s: string, b: boolean);
declare function f(n: number, b: boolean);

f(1/**/ var`
	f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
	defer done()
	f.GoToMarker(t, "")
	f.VerifySignatureHelp(t, fourslash.VerifySignatureHelpOptions{Text: "f(n: number): any", ParameterName: "n", ParameterSpan: "n: number", OverloadsCount: 4})
	f.Insert(t, ", ")
	f.VerifySignatureHelp(t, fourslash.VerifySignatureHelpOptions{Text: "f(n: number, b: boolean): any", ParameterName: "b", ParameterSpan: "b: boolean", OverloadsCount: 4})
}
