// Code generated by convertFourslash; DO NOT EDIT.
// To modify this test, run "npm run makemanual codeFixMissingTypeAnnotationOnExports23-heritage-formatting"

package fourslash_test

import (
	"testing"

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

func TestCodeFixMissingTypeAnnotationOnExports23_heritage_formatting(t *testing.T) {
	fourslash.SkipIfFailing(t)
	t.Parallel()
	defer testutil.RecoverAndFail(t, "Panic on fourslash test")
	const content = `// @isolatedDeclarations: true
// @declaration: true
function mixin<T extends new (...a: any) => any>(ctor: T): T {
    return ctor;
}
class Point2D { x = 0; y = 0; }
interface I{}
export class Point3D extends
    /** Base class */
    mixin(Point2D)
    // Test
    implements I
    {
              z = 0;
}`
	f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
	defer done()
	f.VerifyCodeFixAvailable(t, []string{"Extract base class to variable"})
	f.VerifyCodeFix(t, fourslash.VerifyCodeFixOptions{
		Description: "Extract base class to variable",
		NewFileContent: `function mixin<T extends new (...a: any) => any>(ctor: T): T {
    return ctor;
}
class Point2D { x = 0; y = 0; }
interface I{}
const Point3DBase: typeof Point2D =
    /** Base class */
    mixin(Point2D);
export class Point3D extends Point3DBase
    // Test
    implements I
    {
              z = 0;
}`,
		Index: 0,
	})
}
