37 lines
875 B
Go
37 lines
875 B
Go
// Code generated by convertFourslash; DO NOT EDIT.
|
|
// To modify this test, run "npm run makemanual goToImplementationInterfaceProperty_00"
|
|
|
|
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/microsoft/typescript-go/internal/fourslash"
|
|
"github.com/microsoft/typescript-go/internal/testutil"
|
|
)
|
|
|
|
func TestGoToImplementationInterfaceProperty_00(t *testing.T) {
|
|
fourslash.SkipIfFailing(t)
|
|
t.Parallel()
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `interface Foo {
|
|
hello: number
|
|
}
|
|
|
|
var bar: Foo = { [|hello|]: 5 };
|
|
|
|
|
|
function whatever(x: Foo = { [|hello|]: 5 * 9 }) {
|
|
x.he/*reference*/llo
|
|
}
|
|
|
|
class Bar {
|
|
x: Foo = { [|hello|]: 6 }
|
|
|
|
constructor(public f: Foo = { [|hello|]: 7 } ) {}
|
|
}`
|
|
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
defer done()
|
|
f.VerifyBaselineGoToImplementation(t, "reference")
|
|
}
|