Report UNUSED_PARAMETER in setter #KT-21129 Fixed

This commit is contained in:
Mikhail Glukhikh
2018-04-27 16:09:29 +03:00
parent bcc1c02e73
commit e76debb12b
58 changed files with 118 additions and 115 deletions
@@ -7,7 +7,7 @@ open class B {
class A {
companion object : B() {
var p1:Int = 1
@JvmStatic set(p: Int) {
@JvmStatic set(<!UNUSED_PARAMETER!>p<!>: Int) {
p1 = 1
}
@@ -21,7 +21,7 @@ class A {
object A : B() {
var p:Int = 1
@JvmStatic set(p1: Int) {
@JvmStatic set(<!UNUSED_PARAMETER!>p1<!>: Int) {
p = 1
}
@@ -36,7 +36,7 @@ class A {
}
var p:Int = 1
<!JVM_STATIC_NOT_IN_OBJECT_OR_CLASS_COMPANION!>@JvmStatic set(p1: Int)<!> {
<!JVM_STATIC_NOT_IN_OBJECT_OR_CLASS_COMPANION!>@JvmStatic set(<!UNUSED_PARAMETER!>p1<!>: Int)<!> {
p = 1
}