Skip to content

Commit

Permalink
test for 3611
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Aug 17, 2022
1 parent f80f37f commit f42ec42
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/ts/preact.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,18 @@ const DummyChildren: FunctionalComponent = ({ children }) => {
return children;
};

function ReturnChildren(props: { children: preact.ComponentChildren }) {
return props.children;
}

function TestUndefinedChildren() {
return (
<ReturnChildren>
<ReturnChildren>Hello</ReturnChildren>
</ReturnChildren>
);
}

// using ref and or jsx
class ComponentUsingRef extends Component<any, any> {
private array: string[];
Expand Down

0 comments on commit f42ec42

Please sign in to comment.