From f42ec42dfcf2151c771b50090f5ed0baaa218fa7 Mon Sep 17 00:00:00 2001 From: jdecroock Date: Wed, 17 Aug 2022 23:41:54 +0200 Subject: [PATCH] test for 3611 --- test/ts/preact.tsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/ts/preact.tsx b/test/ts/preact.tsx index ed378d915f3..3307fe4d6c0 100644 --- a/test/ts/preact.tsx +++ b/test/ts/preact.tsx @@ -106,6 +106,18 @@ const DummyChildren: FunctionalComponent = ({ children }) => { return children; }; +function ReturnChildren(props: { children: preact.ComponentChildren }) { + return props.children; +} + +function TestUndefinedChildren() { + return ( + + Hello + + ); +} + // using ref and or jsx class ComponentUsingRef extends Component { private array: string[];