27 lines
530 B
Go
27 lines
530 B
Go
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/fourslash"
|
|
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/testutil"
|
|
)
|
|
|
|
func TestRecursiveClassReference(t *testing.T) {
|
|
t.Parallel()
|
|
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `declare module Thing { }
|
|
|
|
module Thing {
|
|
var /**/x: Mode;
|
|
}
|
|
|
|
module Thing {
|
|
export class Mode { }
|
|
}`
|
|
f := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
f.GoToMarker(t, "")
|
|
f.VerifyQuickInfoExists(t)
|
|
}
|