Don't mark parameters of get/set/propertyDelegated functions as unused.

#KT-5974 fixed
This commit is contained in:
Evgeny Gerashchenko
2015-02-18 15:31:55 +03:00
parent dbe9a70fbd
commit 056daeaadb
16 changed files with 52 additions and 29 deletions
@@ -3,8 +3,8 @@ trait Out<out T>
trait Inv<T>
class Delegate<T> {
fun get(<!UNUSED_PARAMETER(t)!>t<!>: Any, <!UNUSED_PARAMETER(p)!>p<!>: PropertyMetadata): T = null!!
fun set(<!UNUSED_PARAMETER(t)!>t<!>: Any, <!UNUSED_PARAMETER(p)!>p<!>: PropertyMetadata, <!UNUSED_PARAMETER(value)!>value<!>: T) {}
fun get(t: Any, p: PropertyMetadata): T = null!!
fun set(t: Any, p: PropertyMetadata, value: T) {}
}
fun <T> getT(): T = null!!
@@ -3,8 +3,8 @@ trait Out<out T>
trait Inv<T>
class Delegate<T> {
fun get(<!UNUSED_PARAMETER(t)!>t<!>: Any, <!UNUSED_PARAMETER(p)!>p<!>: PropertyMetadata): T = null!!
fun set(<!UNUSED_PARAMETER(t)!>t<!>: Any, <!UNUSED_PARAMETER(p)!>p<!>: PropertyMetadata, <!UNUSED_PARAMETER(varue)!>varue<!>: T) {}
fun get(t: Any, p: PropertyMetadata): T = null!!
fun set(t: Any, p: PropertyMetadata, varue: T) {}
}
fun <T> getT(): T = null!!