Skip to content

Commit aa9dc3a

Browse files
committed
Kotlin: Add test case for useless parameter FP
1 parent fc810dd commit aa9dc3a

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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ class B : A<B, Int> {
77
println("a")
88
}
99
}
10+
11+
fun fn(a: Int = 10) {}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
| Test.kt:11:1:11:22 | p2 | The parameter 'p2' is never used. |
2+
| Test.kt:11:8:11:18 | a | The parameter 'a' is never used. |

0 commit comments

Comments
 (0)