Files
kjol/tools/tsgo/internal/fourslash/tests/gen/referencesForClassParameter_test.go
2026-07-09 16:50:43 -04:00

37 lines
795 B
Go

// Code generated by convertFourslash; DO NOT EDIT.
// To modify this test, run "npm run makemanual referencesForClassParameter"
package fourslash_test
import (
"testing"
"github.com/microsoft/typescript-go/internal/fourslash"
"github.com/microsoft/typescript-go/internal/testutil"
)
func TestReferencesForClassParameter(t *testing.T) {
fourslash.SkipIfFailing(t)
t.Parallel()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `var p = 2;
class p { }
class foo {
constructor (/*1*/public /*2*/p: any) {
}
public f(p) {
this./*3*/p = p;
}
}
var n = new foo(undefined);
n./*4*/p = null;`
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
defer done()
f.VerifyBaselineFindAllReferences(t, "1", "2", "3", "4")
}