KT-2206 ClassFormatError on loading class with property inherited from trait

#KT-2206 fixed
This commit is contained in:
Evgeny Gerashchenko
2012-06-09 16:10:27 +04:00
parent 64d1d3eda6
commit d5b32ba70e
4 changed files with 57 additions and 5 deletions
@@ -0,0 +1,10 @@
//KT-2206
trait A {
fun f():Int = 239
}
class B() : A
fun box() : String {
return if (B().f() == 239) "OK" else "fail"
}
@@ -0,0 +1,14 @@
//KT-2206
trait A {
var a:Int
get() = 239
set(value) {
}
}
class B() : A
fun box() : String {
return if (B().a == 239) "OK" else "fail"
}