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

42 lines
942 B
Go

// Code generated by convertFourslash; DO NOT EDIT.
// To modify this test, run "npm run makemanual quickInfoOnThis5"
package fourslash_test
import (
"testing"
"github.com/microsoft/typescript-go/internal/fourslash"
"github.com/microsoft/typescript-go/internal/testutil"
)
func TestQuickInfoOnThis5(t *testing.T) {
fourslash.SkipIfFailing(t)
t.Parallel()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `// @noImplicitThis: true
const foo = {
num: 0,
f() {
type Y = typeof th/*1*/is;
type Z = typeof th/*2*/is.num;
},
g(this: number) {
type X = typeof th/*3*/is;
}
}
class Foo {
num = 0;
f() {
type Y = typeof th/*4*/is;
type Z = typeof th/*5*/is.num;
}
g(this: number) {
type X = typeof th/*6*/is;
}
}`
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
defer done()
f.VerifyBaselineHover(t)
}