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

39 lines
1010 B
Go

// Code generated by convertFourslash; DO NOT EDIT.
// To modify this test, run "npm run makemanual goToImplementationInterfaceMethod_00"
package fourslash_test
import (
"testing"
"github.com/microsoft/typescript-go/internal/fourslash"
"github.com/microsoft/typescript-go/internal/testutil"
)
func TestGoToImplementationInterfaceMethod_00(t *testing.T) {
fourslash.SkipIfFailing(t)
t.Parallel()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `interface Foo {
he/*declaration*/llo: () => void
}
var bar: Foo = { [|hello|]: helloImpl };
var baz: Foo = { "[|hello|]": helloImpl };
function helloImpl () {}
function whatever(x: Foo = { [|hello|]() {/**1*/} }) {
x.he/*function_call*/llo()
}
class Bar {
x: Foo = { [|hello|]() {/*2*/} }
constructor(public f: Foo = { [|hello|]() {/**3*/} } ) {}
}`
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
defer done()
f.VerifyBaselineGoToImplementation(t, "function_call", "declaration")
}