// Code generated by convertFourslash; DO NOT EDIT. // To modify this test, run "npm run makemanual genericInterfacesWithConstraints1" package fourslash_test import ( "testing" "github.com/microsoft/typescript-go/internal/fourslash" "github.com/microsoft/typescript-go/internal/testutil" ) func TestGenericInterfacesWithConstraints1(t *testing.T) { fourslash.SkipIfFailing(t) t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface A { a: string; } interface B extends A { b: string; } interface C extends B { c: string; } interface G { x: T; y: U; } var v/*1*/1: G; // Ok var v/*2*/2: G<{ a: string }, C>; // Ok, equivalent to G var v/*3*/3: G, C>; // Ok` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) defer done() f.VerifyQuickInfoAt(t, "1", "var v1: G", "") f.VerifyQuickInfoAt(t, "2", "var v2: G<{\n a: string;\n}, C>", "") f.VerifyQuickInfoAt(t, "3", "var v3: G, C>", "") }