mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-03-15 14:05:47 -05:00
Add regression test
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user