Files
kjol/tools/tsgo/internal/fourslash/tests/gen/inlayHintsInteractiveWithClosures_test.go
2026-07-09 16:50:43 -04:00

32 lines
994 B
Go

// Code generated by convertFourslash; DO NOT EDIT.
// To modify this test, run "npm run makemanual inlayHintsInteractiveWithClosures"
package fourslash_test
import (
"testing"
"github.com/microsoft/typescript-go/internal/fourslash"
"github.com/microsoft/typescript-go/internal/ls/lsutil"
"github.com/microsoft/typescript-go/internal/testutil"
)
func TestInlayHintsInteractiveWithClosures(t *testing.T) {
fourslash.SkipIfFailing(t)
t.Parallel()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `function foo1(a: number) {
return (b: number) => {
return a + b
}
}
foo1(1)(2);
function foo2(a: (b: number) => number) {
return a(1) + 2
}
foo2((c: number) => c + 1);`
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
defer done()
f.VerifyBaselineInlayHints(t, nil /*span*/, &lsutil.UserPreferences{InlayHints: lsutil.InlayHintsPreferences{IncludeInlayParameterNameHints: lsutil.IncludeInlayParameterNameHintsAll}})
}