Declaring java-interface on data class breaks "equals"


#1

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()
  }
}


#2

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


#3

0.8.11.1


#4

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