26 lines
573 B
Go
26 lines
573 B
Go
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/fourslash"
|
|
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/testutil"
|
|
)
|
|
|
|
func TestParameterlessSetter(t *testing.T) {
|
|
t.Parallel()
|
|
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `class foo {
|
|
get getterOnly() {
|
|
return undefined;
|
|
}
|
|
set setterOnly() { }
|
|
}
|
|
var obj = new foo();
|
|
obj.setterOnly = obj./**/getterOnly;`
|
|
f := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
f.GoToMarker(t, "")
|
|
f.VerifyQuickInfoExists(t)
|
|
}
|