Straighten out MemberIndex calculation in LazyJavaStaticScope
Also delete confusing "inn" function
This commit is contained in:
@@ -16,9 +16,7 @@
|
||||
|
||||
package org.jetbrains.kotlin.util
|
||||
|
||||
public fun <T: Any, R> T?.inn(then: (T) -> R, _else: R): R = if (this != null) then(this) else _else
|
||||
|
||||
public fun <T: Any> T?.sure(message: String): T = this ?: throw AssertionError(message)
|
||||
public fun <T : Any> T?.sure(message: String): T = this ?: throw AssertionError(message)
|
||||
|
||||
fun <T> T.printAndReturn(message: String = ""): T {
|
||||
if (!message.isEmpty()) {
|
||||
@@ -26,4 +24,4 @@ fun <T> T.printAndReturn(message: String = ""): T {
|
||||
}
|
||||
println(this)
|
||||
return this
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user