KT-2819 Duplicate toString() method generated in data class

#KT-2819 Fixed
This commit is contained in:
Andrey Breslav
2012-09-26 12:32:16 +04:00
parent b5145f1a87
commit 92ac865c72
9 changed files with 188 additions and 6 deletions
@@ -0,0 +1,7 @@
data class A(val x: Int) {
fun hashCode(): Int = -3
}
fun box(): String {
return if (A(0).hashCode() == -3) "OK" else "fail"
}