package fourslash_test import ( "testing" "efprojects.com/kitten-ipc/kitcom/internal/tsgo/fourslash" "efprojects.com/kitten-ipc/kitcom/internal/tsgo/testutil" ) func TestDuplicateFunctionImplementation(t *testing.T) { t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface IFoo { foo(): T; } function foo(/**/): string { return null; } function foo(x: T): T { return null; }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.GoToMarker(t, "") f.Insert(t, "x: string") }