Add regression test

This commit is contained in:
Anders Hejlsberg
2018-12-28 09:38:19 -10:00
parent 93b4302d35
commit 7f4d1ac475

View File

@@ -1,3 +1,5 @@
// @strict: true
interface SFC<P = {}> {
(props: P & { children?: any }): any | null;
}
@@ -16,4 +18,9 @@ const Child: SFC<Props> = ({
children,
name = "Artemis",
...props
}) => `name: ${name} props: ${JSON.stringify(props)}`;
}) => `name: ${name} props: ${JSON.stringify(props)}`;
// Repro from #29189
declare function f(g: (as: string[]) => void): void
f(([_1, _2 = undefined]) => undefined)