Fix for KT-14201: UnsupportedOperationException: Don't know how to generate outer expression for anonymous object with invoke and non-trivial closure
#KT-14201 Fixed
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
interface Intf {
|
||||
val aValue: String
|
||||
}
|
||||
|
||||
class ClassB {
|
||||
val x = { "OK" }
|
||||
|
||||
val value: Intf = object : Intf {
|
||||
override val aValue = x()
|
||||
}
|
||||
}
|
||||
|
||||
fun box() : String {
|
||||
return ClassB().value.aValue
|
||||
}
|
||||
Reference in New Issue
Block a user