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

package fourslash_test

import (
	"testing"

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

func TestQuickinfoVerbosityIndexedAccessType(t *testing.T) {
	fourslash.SkipIfFailing(t)
	t.Parallel()
	defer testutil.RecoverAndFail(t, "Panic on fourslash test")
	const content = `interface T2 {
	"string key": string;
	"number key": number;
	"any key": string | number | symbol;
}
type K2 = "string key" | "any key";
function fn2<T extends T2>(obj: T, key: keyof T) {
	const value/*v1*/: T[K2] = undefined as any;
}
function fn3<K extends keyof T2>(obj: T2, key: K) {
    const value/*v2*/: T2[K] = undefined as any;;
}`
	f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
	defer done()
	f.VerifyBaselineHoverWithVerbosity(t, map[string][]int{"v1": {0, 1}, "v2": {0, 1}})
}
