Skip to content

Commit 3507873

Browse files
committed
Kotlin: Add FP test case for useless parameter query
1 parent c70f3d3 commit 3507873

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

java/ql/test/kotlin/query-tests/UselessParameter/Test.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ object O {}
1919
fun C.fn() {}
2020
fun C.Companion.fn() {}
2121
fun O.fn() {}
22+
23+
@Suppress("UNUSED_PARAMETER")
24+
fun fn2(a: Int) {}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
| Test.kt:11:8:11:18 | a | The parameter 'a' is never used. |
22
| Test.kt:19:5:19:5 | <this> | The parameter '<this>' is never used. |
3+
| Test.kt:24:9:24:14 | a | The parameter 'a' is never used. |

0 commit comments

Comments
 (0)