Remove assertion on sorted ranges: it could be empty if lambda doesn't contain any linenumber

#KT-35101 Fixed
This commit is contained in:
Mikhael Bogdanov
2019-12-02 08:59:24 +01:00
parent ae4a1e3cca
commit b9dee4e93a
8 changed files with 44 additions and 6 deletions
@@ -0,0 +1,14 @@
// FILE: 1.kt
package test
inline fun <T, R> T.let2(block: (T) -> R): R {
return block(this)
}
// FILE: 2.kt
import test.*
fun box(): String {
val result = true.let2(Boolean::not)
return if (!result) "OK" else "fail"
}