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

package fourslash_test

import (
	"testing"

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

func TestCodeFixClassImplementInterfaceSomePropertiesPresent(t *testing.T) {
	fourslash.SkipIfFailing(t)
	t.Parallel()
	defer testutil.RecoverAndFail(t, "Panic on fourslash test")
	const content = `// @strict: false

interface I {
    x: number;
    y: number;
    z: number & { __iBrand: any };
}

class C implements I {[|
   |]constructor(public x: number) { }
   y: number;
}`
	f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
	defer done()
	f.VerifyCodeFix(t, fourslash.VerifyCodeFixOptions{
		Description: "Implement interface 'I'",
		NewFileContent: `
interface I {
    x: number;
    y: number;
    z: number & { __iBrand: any };
}

class C implements I {
   constructor(public x: number) { }
    z: number & { __iBrand: any; };
   y: number;
}`,
		Index: 0,
	})
}
