36 lines
868 B
Go
36 lines
868 B
Go
// Code generated by convertFourslash; DO NOT EDIT.
|
|
// To modify this test, run "npm run makemanual quickInfoDisplayPartsVar"
|
|
|
|
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/microsoft/typescript-go/internal/fourslash"
|
|
"github.com/microsoft/typescript-go/internal/testutil"
|
|
)
|
|
|
|
func TestQuickInfoDisplayPartsVar(t *testing.T) {
|
|
fourslash.SkipIfFailing(t)
|
|
t.Parallel()
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `var /*1*/a = 10;
|
|
function foo() {
|
|
var /*2*/b = /*3*/a;
|
|
}
|
|
namespace 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, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
defer done()
|
|
f.VerifyBaselineHover(t)
|
|
}
|