Minor. rename type parameters for debug purposes.

This commit is contained in:
Stanislav Erokhin
2017-06-09 15:17:40 +03:00
committed by Mikhail Zarechenskiy
parent e74a02eb94
commit d58c6e245f
@@ -10,15 +10,15 @@ open class MyClass(val value: String) {
}
}
inline fun <T> runLogged(entry: String, action: () -> T): T {
inline fun <L> runLogged(entry: String, action: () -> L): L {
log += entry
return action()
}
operator fun <T: MyClass> T.provideDelegate(host: Any?, p: Any): T =
operator fun <P: MyClass> P.provideDelegate(host: Any?, p: Any): P =
runLogged("tdf(${this.value});") { this }
operator fun <T> T.getValue(receiver: Any?, p: Any): T =
operator fun <V> V.getValue(receiver: Any?, p: Any): V =
runLogged("get($this);") { this }
val testO by runLogged("O;") { MyClass("O") }