vendor tsgo
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
// Code generated by convertFourslash; DO NOT EDIT.
|
||||
// To modify this test, run "npm run makemanual jsDocPropertyDescription9"
|
||||
|
||||
package fourslash_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/microsoft/typescript-go/internal/fourslash"
|
||||
"github.com/microsoft/typescript-go/internal/testutil"
|
||||
)
|
||||
|
||||
func TestJsDocPropertyDescription9(t *testing.T) {
|
||||
fourslash.SkipIfFailing(t)
|
||||
t.Parallel()
|
||||
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
||||
const content = `class LiteralClass {
|
||||
/** Something generic */
|
||||
static [key: ` + "`" + `prefix${string}` + "`" + `]: any;
|
||||
/** Something else */
|
||||
static [key: ` + "`" + `prefix${number}` + "`" + `]: number;
|
||||
}
|
||||
function literalClass(e: typeof LiteralClass) {
|
||||
console.log(e./*literal1Class*/prefixMember);
|
||||
console.log(e./*literal2Class*/anything);
|
||||
console.log(e./*literal3Class*/prefix0);
|
||||
}`
|
||||
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
||||
defer done()
|
||||
f.VerifyQuickInfoAt(t, "literal1Class", "(index) LiteralClass[`prefix${string}`]: any", "Something generic")
|
||||
f.VerifyQuickInfoAt(t, "literal2Class", "any", "")
|
||||
f.VerifyQuickInfoAt(t, "literal3Class", "(index) LiteralClass[`prefix${string}` | `prefix${number}`]: any", "Something generic\nSomething else")
|
||||
}
|
||||
Reference in New Issue
Block a user