33 lines
703 B
Go
33 lines
703 B
Go
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/fourslash"
|
|
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/testutil"
|
|
)
|
|
|
|
func TestJsDocExtends(t *testing.T) {
|
|
t.Parallel()
|
|
t.Skip()
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `// @allowJs: true
|
|
// @Filename: dummy.js
|
|
/**
|
|
* @extends {Thing<string>}
|
|
*/
|
|
class MyStringThing extends Thing {
|
|
constructor() {
|
|
var x = this.mine;
|
|
x/**/;
|
|
}
|
|
}
|
|
// @Filename: declarations.d.ts
|
|
declare class Thing<T> {
|
|
mine: T;
|
|
}`
|
|
f := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
f.GoToMarker(t, "")
|
|
f.VerifyQuickInfoIs(t, "(local var) x: string", "")
|
|
}
|