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

42 lines
964 B
Go

// Code generated by convertFourslash; DO NOT EDIT.
// To modify this test, run "npm run makemanual goToImplementationNamespace_03"
package fourslash_test
import (
"testing"
"github.com/microsoft/typescript-go/internal/fourslash"
"github.com/microsoft/typescript-go/internal/testutil"
)
func TestGoToImplementationNamespace_03(t *testing.T) {
fourslash.SkipIfFailing(t)
t.Parallel()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `namespace Foo {
export interface Bar {
hello(): void;
}
class [|BarImpl|] implements Bar {
hello() {}
}
}
class [|Baz|] implements Foo.Bar {
hello() {}
}
var someVar1 : Foo.Bar = [|{ hello: () => {/**1*/} }|];
var someVar2 = <Foo.Bar> [|{ hello: () => {/**2*/} }|];
function whatever(x: Foo.Ba/*reference*/r) {
}`
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
defer done()
f.VerifyBaselineGoToImplementation(t, "reference")
}