package fourslash_test import ( "testing" "efprojects.com/kitten-ipc/kitcom/internal/tsgo/fourslash" "efprojects.com/kitten-ipc/kitcom/internal/tsgo/testutil" ) func TestQuickInfoNestedGenericCalls(t *testing.T) { t.Parallel() t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true /*1*/m({ foo: /*2*/$("foo") }); m({ foo: /*3*/$("foo") }); declare const m: (s: { [_ in S]: { $: NoInfer } }) => void declare const $: (s: T) => { $: S } type NoInfer = [T][T extends any ? 0 : never];` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) f.VerifyQuickInfoAt(t, "1", "const m: <\"foo\">(s: {\n foo: {\n $: \"foo\";\n };\n}) => void", "") f.VerifyQuickInfoAt(t, "2", "const $: (s: string) => {\n $: unknown;\n}", "") f.VerifyQuickInfoAt(t, "3", "const $: (s: string) => {\n $: unknown;\n}", "") }