package fourslash_test import ( "testing" "efprojects.com/kitten-ipc/kitcom/internal/tsgo/fourslash" . "efprojects.com/kitten-ipc/kitcom/internal/tsgo/fourslash/tests/util" "efprojects.com/kitten-ipc/kitcom/internal/tsgo/testutil" ) func TestTsxCompletionsGenericComponent(t *testing.T) { t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @jsx: preserve // @skipLibCheck: true // @Filename: file.tsx declare module JSX { interface Element { } interface IntrinsicElements { } interface ElementAttributesProperty { props; } } class Table
{ constructor(public props: P) {} } type Props = { widthInCol: number; text: string; }; /** * @param width {number} Table width in px */ function createTable(width) { return