File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
javascript/ql/test/query-tests/LanguageFeatures/NonLinearPattern Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 2
2
| ts-test.ts:8:16:8:16 | x | Repeated binding of pattern variable 'x' previously bound $@. | ts-test.ts:8:10:8:10 | x | here |
3
3
| ts-test.ts:11:10:11:10 | x | Repeated binding of pattern variable 'x' previously bound $@. | ts-test.ts:11:7:11:7 | x | here |
4
4
| ts-test.ts:21:8:21:13 | string | Repeated binding of pattern variable 'string' previously bound $@. | ts-test.ts:20:8:20:13 | string | here |
5
+ | ts-test.ts:32:16:32:16 | x | Repeated binding of pattern variable 'x' previously bound $@. | ts-test.ts:30:12:30:12 | x | here |
6
+ | ts-test.ts:34:20:34:20 | x | Repeated binding of pattern variable 'x' previously bound $@. | ts-test.ts:30:12:30:12 | x | here |
7
+ | ts-test.ts:34:20:34:20 | x | Repeated binding of pattern variable 'x' previously bound $@. | ts-test.ts:32:16:32:16 | x | here |
5
8
| tst.js:3:13:3:13 | x | Repeated binding of pattern variable 'x' previously bound $@. | tst.js:3:10:3:10 | x | here |
6
9
| tst.js:8:16:8:16 | x | Repeated binding of pattern variable 'x' previously bound $@. | tst.js:8:10:8:10 | x | here |
7
10
| tst.js:11:10:11:10 | x | Repeated binding of pattern variable 'x' previously bound $@. | tst.js:11:7:11:7 | x | here |
Original file line number Diff line number Diff line change @@ -24,3 +24,15 @@ function f({
24
24
25
25
function g ( { x, y} : { x : string , y : string } ) { // OK
26
26
}
27
+
28
+ function blah ( arg ) {
29
+ var {
30
+ x : x ,
31
+ y : {
32
+ x : x , // NOT OK
33
+ y : {
34
+ x : x // NOT OK
35
+ }
36
+ }
37
+ } = arg ;
38
+ }
You can’t perform that action at this time.
0 commit comments