// Code generated by convertFourslash; DO NOT EDIT. // To modify this test, run "npm run makemanual genericParameterHelp" package fourslash_test import ( "testing" "github.com/microsoft/typescript-go/internal/fourslash" "github.com/microsoft/typescript-go/internal/testutil" ) func TestGenericParameterHelp(t *testing.T) { fourslash.SkipIfFailing(t) t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface IFoo { } function testFunction(a: T, b: U, c: M): M { return null; } // Function calls testFunction(/*3*/ testFunction(null, null, null); testFunction<, ,/*5*/>(null, null, null);` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) defer done() f.GoToMarker(t, "1") f.VerifySignatureHelp(t, fourslash.VerifySignatureHelpOptions{Text: "testFunction(a: T, b: U, c: M): M", ParameterCount: 3, ParameterName: "T", ParameterSpan: "T extends IFoo"}) f.GoToMarker(t, "2") f.VerifySignatureHelp(t, fourslash.VerifySignatureHelpOptions{ParameterName: "U", ParameterSpan: "U"}) f.GoToMarker(t, "3") f.VerifySignatureHelp(t, fourslash.VerifySignatureHelpOptions{ParameterName: "a", ParameterSpan: "a: any"}) f.GoToMarker(t, "4") f.VerifySignatureHelp(t, fourslash.VerifySignatureHelpOptions{ParameterName: "M", ParameterSpan: "M extends IFoo"}) f.GoToMarker(t, "5") f.VerifySignatureHelp(t, fourslash.VerifySignatureHelpOptions{ParameterName: "M", ParameterSpan: "M extends IFoo"}) }