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
+3 -3
View File
@@ -23,7 +23,7 @@ inline var inlineVar: Int
publishedVarTopLevel = 1
return 1
}
set(value) {
set(<!UNUSED_PARAMETER!>value<!>) {
val a = A()
a.test()
publishedTopLevel()
@@ -88,7 +88,7 @@ internal class A {
return 1
}
set(value) {
set(<!UNUSED_PARAMETER!>value<!>) {
publicFun()
<!NON_PUBLIC_CALL_FROM_PUBLIC_INLINE!>internalFun<!>()
<!NON_PUBLIC_CALL_FROM_PUBLIC_INLINE!>privateFun<!>()
@@ -147,7 +147,7 @@ inline internal var publishedVarTopLevel: Int
return 1
}
set(value) {
set(<!UNUSED_PARAMETER!>value<!>) {
publicFun()
<!NON_PUBLIC_CALL_FROM_PUBLIC_INLINE!>internalFun<!>()
<!NON_PUBLIC_CALL_FROM_PUBLIC_INLINE!>privateFun<!>()