mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 08:11:30 -06:00
Add tests for nested destructuring
This commit is contained in:
parent
3b23ab5fb7
commit
f7f9bd1d24
10
tests/cases/fourslash/parameterWithNestedDestructuring.ts
Normal file
10
tests/cases/fourslash/parameterWithNestedDestructuring.ts
Normal file
@ -0,0 +1,10 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
////[[{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');
|
||||
Loading…
x
Reference in New Issue
Block a user