Fix for KT-3546: Exception when delegating to ArrayList

#KT-3546 Fixed
This commit is contained in:
Mikhael Bogdanov
2013-06-18 12:59:48 +04:00
parent 8ac8798266
commit 79cf02ffb9
4 changed files with 35 additions and 5 deletions
@@ -0,0 +1,25 @@
trait A {
fun test(): String
}
trait B {
fun test(): String
}
trait C: A, B
class Z(val param: String): C {
override fun test(): String {
return param
}
}
public class MyClass(val value : C) : C by value {
}
fun box(): String {
val s = MyClass(Z("OK"))
return s.test()
}