KT-3500: ClassFormatError: Duplicate method name&signature in class file && KT-3429: Traits override bug

This commit is contained in:
Mikhael Bogdanov
2013-04-16 18:32:24 +04:00
parent 3da3f94b4e
commit 57b161b08a
15 changed files with 166 additions and 30 deletions
@@ -0,0 +1,15 @@
trait BK {
fun foo(): String = 10.toString()
}
trait KTrait: BK {
override fun foo() = 30.toString()
}
class A : BK, KTrait {
}
fun box(): String {
return if (A().foo() == "30") "OK" else "fail"
}