diff --git a/tests/cases/fourslash/parameterWithNestedDestructuring.ts b/tests/cases/fourslash/parameterWithNestedDestructuring.ts new file mode 100644 index 00000000000..fa3c4e55294 --- /dev/null +++ b/tests/cases/fourslash/parameterWithNestedDestructuring.ts @@ -0,0 +1,10 @@ +/// + +////[[{foo: 'hello', bar: [1]}]] +//// .map(([{foo, bar: [baz]}]) => /*1*/foo + /*2*/baz); + +goTo.marker('1'); +verify.quickInfoIs('var foo: string'); + +goTo.marker('2'); +verify.quickInfoIs('var baz: number');