32 lines
843 B
Go
32 lines
843 B
Go
// Code generated by convertFourslash; DO NOT EDIT.
|
|
// To modify this test, run "npm run makemanual getJavaScriptSyntacticDiagnostics18"
|
|
|
|
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/microsoft/typescript-go/internal/fourslash"
|
|
"github.com/microsoft/typescript-go/internal/testutil"
|
|
)
|
|
|
|
func TestGetJavaScriptSyntacticDiagnostics18(t *testing.T) {
|
|
fourslash.SkipIfFailing(t)
|
|
t.Parallel()
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `// @allowJs: true
|
|
// @Filename: a.js
|
|
class C {
|
|
x; // Regular property declaration allowed
|
|
static y; // static allowed
|
|
public z; // public not allowed
|
|
}
|
|
// @Filename: b.js
|
|
class C {
|
|
x: number; // Types not allowed
|
|
}`
|
|
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
defer done()
|
|
f.VerifyBaselineNonSuggestionDiagnostics(t)
|
|
}
|