Workaround for KT-34656: temporary disable assertion

This commit is contained in:
Mikhael Bogdanov
2019-10-29 07:26:17 +01:00
parent de333c18fc
commit 63b115abb6
6 changed files with 45 additions and 3 deletions
@@ -0,0 +1,21 @@
// FILE: 1.kt
package test
interface Foo {
fun call(): String
}
inline fun f(crossinline g: () -> String) = object: Foo {
fun <T> foo() = g()
fun <T> bar() = "K"
override fun call(): String = foo<String>() + bar<String>()
}
// FILE: 2.kt
import test.*
val x = f { "O" }
fun box() : String {
return x.call()
}