diff options
author | odersky <odersky@gmail.com> | 2015-06-06 11:00:59 +0200 |
---|---|---|
committer | odersky <odersky@gmail.com> | 2015-06-06 11:00:59 +0200 |
commit | 6ca52b0f23f0c3425d054d0918a149e0e7afb765 (patch) | |
tree | 2feaae75dc15cde118cc7fafc5912fa50247d3bd /tests/run/t6534.scala | |
parent | c0770edba1f5ba85b5a48f2c2ce68704dbe00087 (diff) | |
parent | 0cdb29904affbf55d5f08a005e8b96acfd73aa81 (diff) | |
download | dotty-6ca52b0f23f0c3425d054d0918a149e0e7afb765.tar.gz dotty-6ca52b0f23f0c3425d054d0918a149e0e7afb765.tar.bz2 dotty-6ca52b0f23f0c3425d054d0918a149e0e7afb765.zip |
Merge pull request #622 from dotty-staging/add/implement-scala2-traits
Implement Scala2 traits
Diffstat (limited to 'tests/run/t6534.scala')
-rw-r--r-- | tests/run/t6534.scala | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/run/t6534.scala b/tests/run/t6534.scala index 33df97e41..b5789f52c 100644 --- a/tests/run/t6534.scala +++ b/tests/run/t6534.scala @@ -8,7 +8,13 @@ object Test { def main(args: Array[String]): Unit = { val b1 = new Bippy1(71) val b2 = new Bippy2(71) - assert(b1 == b1 && b1.## == b1.x.##, ((b1, b1.##))) - assert(b2 == b2 && b2.## == b2.x.##, ((b2, b2.##))) + assert(b1 == b1) + assert(b1.## == b1.x.##, "hash differs1 " + ((b1, b1.##))) + assert(b2 == b2) + // assert(b2.## == b2.x.##, "hash differs2 " + ((b2, b2.##, b2.x.##))) + // Disabled, this does not hold. Because the value class inherits + // a different hashCode, no code is generated for it. Replaced by: + assert(b2.## == -1) + assert(!b1.equals(b1)) } } |