Kotlin: Add test case for unused extension parameters

This commit is contained in:
Tamas Vajk
2022-10-26 15:05:59 +02:00
parent 52cd200ca0
commit fbcf7ea669
2 changed files with 13 additions and 0 deletions

View File

@@ -9,3 +9,13 @@ class B : A<B, Int> {
} }
fun fn(a: Int = 10) {} fun fn(a: Int = 10) {}
class C {
companion object {}
}
object O {}
fun C.fn() {}
fun C.Companion.fn() {}
fun O.fn() {}

View File

@@ -1 +1,4 @@
| Test.kt:11:8:11:18 | a | The parameter 'a' is never used. | | Test.kt:11:8:11:18 | a | The parameter 'a' is never used. |
| Test.kt:19:5:19:5 | <this> | The parameter '<this>' is never used. |
| Test.kt:20:5:20:15 | <this> | The parameter '<this>' is never used. |
| Test.kt:21:5:21:5 | <this> | The parameter '<this>' is never used. |