[NI] Transform anonymous types of expected type for delegation
This commit is contained in:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user