Test for obsolete KT-8133

#KT-8133 Obsolete
This commit is contained in:
Michael Bogdanov
2015-09-10 12:43:27 +03:00
parent a5f7df3ebf
commit 908228a3cf
4 changed files with 29 additions and 0 deletions
@@ -0,0 +1,14 @@
import test.*
interface foo {
fun bar(): String
}
fun box(): String {
val baz = "OK".myLet {
object : foo {
override fun bar() = it
}
}
return baz.bar()
}
@@ -0,0 +1,3 @@
package test
public inline fun <T, R> T.myLet(f: (T) -> R): R = f(this)