mirror of
https://github.com/github/codeql.git
synced 2026-04-22 15:25:18 +02:00
JS: Include qhelp example in test suite
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
| NonLinearPatternTS.ts:1:34:1:39 | number | The pattern variable 'number' appears to be a type, but is a variable previously bound $@. | NonLinearPatternTS.ts:1:23:1:28 | number | here |
|
||||
| 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 |
|
||||
| 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 |
|
||||
| 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 |
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
function distance({x: number, y: number}) {
|
||||
return Math.sqrt(x*x + y*y);
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
function distance({x, y}: {x: number, y: number}) {
|
||||
return Math.sqrt(x*x + y*y);
|
||||
}
|
||||
Reference in New Issue
Block a user