Minor. rename type parameters for debug purposes.
This commit is contained in:
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") }
|
||||
|
||||
Reference in New Issue
Block a user