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

42 lines
897 B
Go

// Code generated by convertFourslash; DO NOT EDIT.
// To modify this test, run "npm run makemanual findAllRefsForStaticInstanceMethodInheritance"
package fourslash_test
import (
"testing"
"github.com/microsoft/typescript-go/internal/fourslash"
"github.com/microsoft/typescript-go/internal/testutil"
)
func TestFindAllRefsForStaticInstanceMethodInheritance(t *testing.T) {
fourslash.SkipIfFailing(t)
t.Parallel()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `class X{
/*0*/foo(): void{}
}
class Y extends X{
static /*1*/foo(): void{}
}
class Z extends Y{
static /*2*/foo(): void{}
/*3*/foo(): void{}
}
const x = new X();
const y = new Y();
const z = new Z();
x.foo();
y.foo();
z.foo();
Y.foo();
Z.foo();`
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
defer done()
f.VerifyBaselineFindAllReferences(t, "0", "1", "2", "3")
}