39 lines
822 B
Go
39 lines
822 B
Go
// Code generated by convertFourslash; DO NOT EDIT.
|
|
// To modify this test, run "npm run makemanual quickInfoForObjectBindingElementName06"
|
|
|
|
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/microsoft/typescript-go/internal/fourslash"
|
|
"github.com/microsoft/typescript-go/internal/testutil"
|
|
)
|
|
|
|
func TestQuickInfoForObjectBindingElementName06(t *testing.T) {
|
|
fourslash.SkipIfFailing(t)
|
|
t.Parallel()
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `type Foo = {
|
|
/**
|
|
* Thing is a bar
|
|
*/
|
|
isBar: boolean
|
|
|
|
/**
|
|
* Thing is a baz
|
|
*/
|
|
isBaz: boolean
|
|
}
|
|
|
|
function f(): Foo {
|
|
return undefined as any
|
|
}
|
|
|
|
const { isBaz: isBar } = f();
|
|
isBar/**/;`
|
|
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
defer done()
|
|
f.VerifyBaselineHover(t)
|
|
}
|