Declaring java-interface on data class breaks "equals"

This test fails:

class TestRes{   Test fun eqName(){   assertEquals(Name("a"),Name("a"))   } }

data class Name(val name:String): Runnable{ // or any java interface
  override fun run() {
  throw UnsupportedOperationException()

Should be fixed in the recent builds, AFAIK. What version of Kotlin are you using?

You can use our bleeding edge builds for now, or wait until we roll out M9 (very soon)