kittenipc/kitcom/internal/tsgo/fourslash/tests/gen/quickInfoDisplayPartsVar_test.go
2025-10-15 10:12:44 +03:00

32 lines
697 B
Go

package fourslash_test
import (
"testing"
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/fourslash"
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/testutil"
)
func TestQuickInfoDisplayPartsVar(t *testing.T) {
t.Parallel()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `var /*1*/a = 10;
function foo() {
var /*2*/b = /*3*/a;
}
module m {
var /*4*/c = 10;
export var /*5*/d = 10;
}
var /*6*/f: () => number;
var /*7*/g = /*8*/f;
/*9*/f();
var /*10*/h: { (a: string): number; (a: number): string; };
var /*11*/i = /*12*/h;
/*13*/h(10);
/*14*/h("hello");`
f := fourslash.NewFourslash(t, nil /*capabilities*/, content)
f.VerifyBaselineHover(t)
}