File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
javascript/ql/test/query-tests/LanguageFeatures/NonLinearPattern Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 1
1
| ts-test.ts:3:13:3:13 | x | Repeated binding of pattern variable 'x' previously bound $@. | ts-test.ts:3:10:3:10 | x | here |
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
+ | 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 |
4
5
| tst.js:3:13:3:13 | x | Repeated binding of pattern variable 'x' previously bound $@. | tst.js:3:10:3:10 | x | here |
5
6
| tst.js:8:16:8:16 | x | Repeated binding of pattern variable 'x' previously bound $@. | tst.js:8:10:8:10 | x | here |
6
7
| 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 @@ -15,3 +15,12 @@ var { x: x, x: y } = o;
15
15
16
16
// OK
17
17
var { p = x , q = x } = o ;
18
+
19
+ function f ( {
20
+ x : string ,
21
+ y : string // NOT OK
22
+ } ) {
23
+ }
24
+
25
+ function g ( { x, y} : { x : string , y : string } ) { // OK
26
+ }
You can’t perform that action at this time.
0 commit comments