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

32 lines
832 B
Go

// Code generated by convertFourslash; DO NOT EDIT.
// To modify this test, run "npm run makemanual goToDefinitionObjectLiteralProperties1"
package fourslash_test
import (
"testing"
"github.com/microsoft/typescript-go/internal/fourslash"
"github.com/microsoft/typescript-go/internal/testutil"
)
func TestGoToDefinitionObjectLiteralProperties1(t *testing.T) {
fourslash.SkipIfFailing(t)
t.Parallel()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `interface PropsBag {
/*first*/propx: number
}
function foo(arg: PropsBag) {}
foo({
[|pr/*p1*/opx|]: 10
})
function bar(firstarg: boolean, secondarg: PropsBag) {}
bar(true, {
[|pr/*p2*/opx|]: 10
})`
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
defer done()
f.VerifyBaselineGoToDefinition(t, true, "p1", "p2")
}