We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb73565 commit 80e3b72Copy full SHA for 80e3b72
1 file changed
tests/cases/fourslash/parameterWithDestructuring.ts
@@ -1,11 +1,22 @@
1
/// <reference path='fourslash.ts'/>
2
3
+// Repros from issues #4949 and #4818
4
+
5
////const result = [{ foo: 'hello' }]
6
//// .map(({ /*1*/foo }) => /*2*/foo)
7
//// .map(foo => foo);
8
+////
9
+////const f = (foo: (bar: string[]) => void) => { };
10
11
+////f(([a, b]) => {
12
+//// /*3*/a.charAt(0); // Not okay: inferred as `any`
13
+////});
14
15
goTo.marker('1');
16
verify.quickInfoIs('var foo: string');
17
18
goTo.marker('2');
19
20
21
+goTo.marker('3');
22
+verify.quickInfoIs('var a: string');
0 commit comments