vendor tsgo
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
// Code generated by convertFourslash; DO NOT EDIT.
|
||||
// To modify this test, run "npm run makemanual navigationItemsExportDefaultExpression2"
|
||||
|
||||
package fourslash_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/microsoft/typescript-go/internal/fourslash"
|
||||
"github.com/microsoft/typescript-go/internal/testutil"
|
||||
)
|
||||
|
||||
func TestNavigationItemsExportDefaultExpression2(t *testing.T) {
|
||||
fourslash.SkipIfFailing(t)
|
||||
t.Parallel()
|
||||
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
||||
const content = `export const foo = {
|
||||
foo: {},
|
||||
};
|
||||
|
||||
export default {
|
||||
foo: {},
|
||||
};
|
||||
|
||||
export default {
|
||||
foo: {},
|
||||
};
|
||||
|
||||
type Type = typeof foo;
|
||||
|
||||
export default {
|
||||
foo: {},
|
||||
} as Type;
|
||||
|
||||
export default {
|
||||
foo: {},
|
||||
} satisfies Type;
|
||||
|
||||
export default (class {
|
||||
prop = 42;
|
||||
});
|
||||
|
||||
export default (class Cls {
|
||||
prop = 42;
|
||||
});`
|
||||
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
||||
defer done()
|
||||
f.VerifyBaselineDocumentSymbol(t)
|
||||
}
|
||||
Reference in New Issue
Block a user