[NI] Transform anonymous types of expected type for delegation

This commit is contained in:
Mikhail Zarechenskiy
2017-08-21 00:26:00 +03:00
parent 1a05df204e
commit 9f2bf066b9
11 changed files with 130 additions and 13 deletions
@@ -0,0 +1,23 @@
// WITH_RUNTIME
val b: First by lazy {
object : First { }
}
private val withoutType by lazy {
object : First { }
}
private val withTwoSupertypes by lazy {
object : First, Second { }
}
interface First
interface Second
fun box(): String {
b
withoutType
withTwoSupertypes
return "OK"
}