vendor tsgo
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
// Code generated by convertFourslash; DO NOT EDIT.
|
||||
// To modify this test, run "npm run makemanual quickInfoJsDocGetterSetterNoCrash1"
|
||||
|
||||
package fourslash_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/microsoft/typescript-go/internal/fourslash"
|
||||
"github.com/microsoft/typescript-go/internal/testutil"
|
||||
)
|
||||
|
||||
func TestQuickInfoJsDocGetterSetterNoCrash1(t *testing.T) {
|
||||
fourslash.SkipIfFailing(t)
|
||||
t.Parallel()
|
||||
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
||||
const content = `class A implements A {
|
||||
get x(): string { return "" }
|
||||
}
|
||||
const e = new A()
|
||||
e.x/*1*/
|
||||
|
||||
class B implements B {
|
||||
set x(v: string) {}
|
||||
}
|
||||
const f = new B()
|
||||
f.x/*2*/`
|
||||
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
||||
defer done()
|
||||
f.VerifyQuickInfoAt(t, "1", "(property) A.x: string", "")
|
||||
f.VerifyQuickInfoAt(t, "2", "(property) B.x: string", "")
|
||||
}
|
||||
Reference in New Issue
Block a user