25 lines
704 B
Go
25 lines
704 B
Go
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/fourslash"
|
|
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/testutil"
|
|
)
|
|
|
|
func TestFindAllRefsUnresolvedSymbols3(t *testing.T) {
|
|
t.Parallel()
|
|
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `import * as /*a0*/Bar from "does-not-exist";
|
|
|
|
let a: /*a1*/Bar;
|
|
let b: /*a2*/Bar<string>;
|
|
let c: /*a3*/Bar<string, number>;
|
|
let d: /*a4*/Bar./*b0*/X;
|
|
let e: /*a5*/Bar./*b1*/X<string>;
|
|
let f: /*a6*/Bar./*c0*/X./*d0*/Y;`
|
|
f := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
f.VerifyBaselineFindAllReferences(t, "a0", "a1", "a2", "a3", "a4", "a5", "a6", "b0", "b1", "c0", "d0")
|
|
}
|