// Code generated by convertFourslash; DO NOT EDIT. // To modify this test, run "npm run makemanual genericCombinators3" package fourslash_test import ( "testing" "github.com/microsoft/typescript-go/internal/fourslash" "github.com/microsoft/typescript-go/internal/testutil" ) func TestGenericCombinators3(t *testing.T) { fourslash.SkipIfFailing(t) t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Collection { } interface Combinators { map(c: Collection, f: (x: T, y: U) => V): Collection; map(c: Collection, f: (x: T, y: U) => any): Collection; } var c2: Collection; var _: Combinators; var /*9*/r1a = _.ma/*1c*/p(c2, (/*1a*/x,/*1b*/y) => { return x + "" }); // check quick info of map here` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) defer done() f.VerifyQuickInfoAt(t, "1a", "(parameter) x: number", "") f.VerifyQuickInfoAt(t, "1b", "(parameter) y: string", "") f.VerifyQuickInfoAt(t, "1c", "(method) Combinators.map(c: Collection, f: (x: number, y: string) => string): Collection (+1 overload)", "") f.VerifyQuickInfoAt(t, "9", "var r1a: Collection", "") }