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
@@ -15,7 +15,7 @@ open class A {
<!INLINE_PROPERTY_WITH_BACKING_FIELD!>inline var z2<!> = 1
<!INLINE_PROPERTY_WITH_BACKING_FIELD!>var z2_1<!> = 1
inline set(p: Int) {}
inline set(<!UNUSED_PARAMETER!>p<!>: Int) {}
<!INLINE_PROPERTY_WITH_BACKING_FIELD!>inline val z<!> by Delegate()
}
@@ -7,11 +7,11 @@ final class FinalProperty {
inline var varProp: Int
get() = 1
set(p: Int) {}
set(<!UNUSED_PARAMETER!>p<!>: Int) {}
var varProp_2: Int
get() = 1
inline set(p: Int) {}
inline set(<!UNUSED_PARAMETER!>p<!>: Int) {}
}
@@ -24,11 +24,11 @@ open class OpenProperty {
<!DECLARATION_CANT_BE_INLINED!>inline open var varProp: Int<!>
get() = 1
set(p: Int) {}
set(<!UNUSED_PARAMETER!>p<!>: Int) {}
<!DECLARATION_CANT_BE_INLINED!>open var varProp_2: Int<!>
get() = 1
inline set(p: Int) {}
inline set(<!UNUSED_PARAMETER!>p<!>: Int) {}
}