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

42 lines
959 B
Go

// Code generated by convertFourslash; DO NOT EDIT.
// To modify this test, run "npm run makemanual quickInfoDisplayPartsLet"
package fourslash_test
import (
"testing"
"github.com/microsoft/typescript-go/internal/fourslash"
"github.com/microsoft/typescript-go/internal/testutil"
)
func TestQuickInfoDisplayPartsLet(t *testing.T) {
fourslash.SkipIfFailing(t)
t.Parallel()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `let /*1*/a = 10;
function foo() {
let /*2*/b = /*3*/a;
if (b) {
let /*4*/b1 = 10;
}
}
namespace m {
let /*5*/c = 10;
export let /*6*/d = 10;
if (c) {
let /*7*/e = 10;
}
}
let /*8*/f: () => number;
let /*9*/g = /*10*/f;
/*11*/f();
let /*12*/h: { (a: string): number; (a: number): string; };
let /*13*/i = /*14*/h;
/*15*/h(10);
/*16*/h("hello");`
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
defer done()
f.VerifyBaselineHover(t)
}