From d0623dc7664fc2821067b31b2b4d058bbb59ea80 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sat, 21 Jul 2012 13:04:13 +0200 Subject: SI-6090 Sharpens the test so that only Object_== and Object_!= methods on valueclasses may be rewritten in posterasure, whereas user-defined methods are not rewritten. --- test/files/run/t6090.scala | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/files/run/t6090.scala (limited to 'test') diff --git a/test/files/run/t6090.scala b/test/files/run/t6090.scala new file mode 100644 index 0000000000..e7dbb36a05 --- /dev/null +++ b/test/files/run/t6090.scala @@ -0,0 +1,6 @@ +class X { def ==(other: X) = true } +class V(val x: X) extends AnyVal +object Test extends { + def main(args: Array[String]) = + assert((new V(new X) == new V(new X))) +} -- cgit v1.2.3