Do not generate toString and other methods if they are inherited.

This commit is contained in:
Evgeny Gerashchenko
2013-09-24 16:27:21 +04:00
parent 23e1484319
commit e98b75b462
3 changed files with 17 additions and 1 deletions
@@ -0,0 +1,10 @@
trait SuperTrait {
public fun toString(): String = "!"
}
data class A(val x: Int): SuperTrait {
}
fun box(): String {
return if (A(0).toString() == "!") "OK" else "fail"
}