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

package fourslash_test

import (
	"testing"

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

func TestCodeFixClassImplementInterfacePropertySignatures(t *testing.T) {
	fourslash.SkipIfFailing(t)
	t.Parallel()
	defer testutil.RecoverAndFail(t, "Panic on fourslash test")
	const content = `interface I {
    a0: {};
    a1: { (b1: number, c1: string): number; };
    a2: (b2: number, c2: string) => number;
    a3: { (b3: number, c3: string): number, x: number };

    a4: { new (b1: number, c1: string): number; };
    a5: new (b2: number, c2: string) => number;
    a6: { new (b3: number, c3: string): number, x: number };

    a7: { foo(b7: number, c7: string): number };

    a8: { (b81: number, c81: string): number, new (b82: number, c82: string): number; };

    a9: { (b9: number, c9: string): number; [d9: number]: I };
    a10: { (b10: number, c10: string): number; [d10: string]: I };
}
class C implements I {}`
	f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
	defer done()
	f.VerifyCodeFix(t, fourslash.VerifyCodeFixOptions{
		Description: "Implement interface 'I'",
		NewFileContent: `interface I {
    a0: {};
    a1: { (b1: number, c1: string): number; };
    a2: (b2: number, c2: string) => number;
    a3: { (b3: number, c3: string): number, x: number };

    a4: { new (b1: number, c1: string): number; };
    a5: new (b2: number, c2: string) => number;
    a6: { new (b3: number, c3: string): number, x: number };

    a7: { foo(b7: number, c7: string): number };

    a8: { (b81: number, c81: string): number, new (b82: number, c82: string): number; };

    a9: { (b9: number, c9: string): number; [d9: number]: I };
    a10: { (b10: number, c10: string): number; [d10: string]: I };
}
class C implements I {
    a0: {};
    a1: (b1: number, c1: string) => number;
    a2: (b2: number, c2: string) => number;
    a3: { (b3: number, c3: string): number; x: number; };
    a4: new (b1: number, c1: string) => number;
    a5: new (b2: number, c2: string) => number;
    a6: { new(b3: number, c3: string): number; x: number; };
    a7: { foo(b7: number, c7: string): number; };
    a8: { (b81: number, c81: string): number; new(b82: number, c82: string): number; };
    a9: { (b9: number, c9: string): number;[d9: number]: I; };
    a10: { (b10: number, c10: string): number;[d10: string]: I; };
}`,
		Index: 0,
	})
}
