diff --git a/tests/cases/compiler/destructuringInitializerContextualTypeFromContext.ts b/tests/cases/compiler/destructuringInitializerContextualTypeFromContext.ts index 6153b1e3a80..6b109e22271 100644 --- a/tests/cases/compiler/destructuringInitializerContextualTypeFromContext.ts +++ b/tests/cases/compiler/destructuringInitializerContextualTypeFromContext.ts @@ -1,3 +1,5 @@ +// @strict: true + interface SFC

{ (props: P & { children?: any }): any | null; } @@ -16,4 +18,9 @@ const Child: SFC = ({ children, name = "Artemis", ...props -}) => `name: ${name} props: ${JSON.stringify(props)}`; \ No newline at end of file +}) => `name: ${name} props: ${JSON.stringify(props)}`; + +// Repro from #29189 + +declare function f(g: (as: string[]) => void): void +f(([_1, _2 = undefined]) => undefined)