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

package fourslash_test

import (
	"testing"

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

func TestCodeFixInferFromUsageInaccessibleTypes(t *testing.T) {
	fourslash.SkipIfFailing(t)
	t.Parallel()
	defer testutil.RecoverAndFail(t, "Panic on fourslash test")
	const content = `// @strict: false
// @noImplicitAny: true
function f1(a) { a; }
function h1() {
    class C { p: number };
    f1({ ofTypeC: new C() });
}

function f2(a) { a; }
function h2() {
    interface I { a: number }
    var i: I = {a : 1};
    f2(i);
    f2(2);
    f2(false);
}
`
	f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
	defer done()
	f.VerifyCodeFixNotAvailable(t)
}
