38 lines
837 B
Go
38 lines
837 B
Go
// Code generated by convertFourslash; DO NOT EDIT.
|
|
// To modify this test, run "npm run makemanual quickInfoInheritDoc2"
|
|
|
|
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/microsoft/typescript-go/internal/fourslash"
|
|
"github.com/microsoft/typescript-go/internal/testutil"
|
|
)
|
|
|
|
func TestQuickInfoInheritDoc2(t *testing.T) {
|
|
fourslash.SkipIfFailing(t)
|
|
t.Parallel()
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `// @noEmit: true
|
|
// @allowJs: true
|
|
// @Filename: quickInfoInheritDoc2.ts
|
|
class Base<T> {
|
|
/**
|
|
* Base.prop
|
|
*/
|
|
prop: T | undefined;
|
|
}
|
|
|
|
class SubClass<T> extends Base<T> {
|
|
/**
|
|
* @inheritdoc
|
|
* SubClass.prop
|
|
*/
|
|
/*1*/prop: T | undefined;
|
|
}`
|
|
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
defer done()
|
|
f.VerifyBaselineHover(t)
|
|
}
|