Kotlin: add useless parameter test for generic override

This commit is contained in:
Tamas Vajk
2022-05-13 11:07:22 +02:00
parent 39fd1b48fc
commit 6af4b74528
3 changed files with 12 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
interface A<T, V> {
fun setValue(a: T, b: V)
}
class B : A<B, Int> {
override fun setValue(a: B, b: Int) {
println("a")
}
}

View File

@@ -0,0 +1,2 @@
| Test.kt:6:27:6:30 | a | The parameter a is unused. |
| Test.kt:6:33:6:38 | b | The parameter b is unused. |

View File

@@ -0,0 +1 @@
DeadCode/UselessParameter.ql