summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-09-10 00:35:05 +0000
committerPaul Phillips <paulp@improving.org>2012-04-18 13:20:13 +0100
commit8e7f44c89b2e1c45c6273a4753f28e8dd0bb21b0 (patch)
treef725429f9e1d64b3086ba6c85d47efd7f6c6390b /test
parent453169317aab1df1853bd3a899e4bc2d8f54e3c7 (diff)
downloadscala-8e7f44c89b2e1c45c6273a4753f28e8dd0bb21b0.tar.gz
scala-8e7f44c89b2e1c45c6273a4753f28e8dd0bb21b0.tar.bz2
scala-8e7f44c89b2e1c45c6273a4753f28e8dd0bb21b0.zip
Helping Proxy equal itself.
Fix for bumpy proxy equals. Closes SI-4807, no review.
Diffstat (limited to 'test')
-rw-r--r--test/files/run/proxy.check2
-rw-r--r--test/files/run/proxy.scala8
2 files changed, 10 insertions, 0 deletions
diff --git a/test/files/run/proxy.check b/test/files/run/proxy.check
index 9eb68b1e90..c40b3db7c2 100644
--- a/test/files/run/proxy.check
+++ b/test/files/run/proxy.check
@@ -2,3 +2,5 @@ false
true
false
false
+true
+true
diff --git a/test/files/run/proxy.scala b/test/files/run/proxy.scala
index 5f40397944..fbd4fe086c 100644
--- a/test/files/run/proxy.scala
+++ b/test/files/run/proxy.scala
@@ -6,4 +6,12 @@ object Test extends App {
println(p equals 2)
println(p equals 3)
println(p equals null)
+
+ case class Bippy(a: String) extends Proxy {
+ def self = a
+ }
+
+ val label = Bippy("bippy!")
+ println(label == label)
+ println(label == "bippy!")
}