summaryrefslogtreecommitdiff
path: root/test/files/run
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-09-10 00:35:05 +0000
committerPaul Phillips <paulp@improving.org>2011-09-10 00:35:05 +0000
commitcbf8534ff7a04603e7c47c0a2422c012ddd44810 (patch)
treeaff99c9e8ecda23ea3e840b7f1eb40c1b478b17b /test/files/run
parentb2b068133a68eb05001c6a233ede5af9e473f796 (diff)
downloadscala-cbf8534ff7a04603e7c47c0a2422c012ddd44810.tar.gz
scala-cbf8534ff7a04603e7c47c0a2422c012ddd44810.tar.bz2
scala-cbf8534ff7a04603e7c47c0a2422c012ddd44810.zip
Helping Proxy equal itself.
Fix for bumpy proxy equals. Closes SI-4807, no review.
Diffstat (limited to 'test/files/run')
-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 6f9e83c7f1..8a6385dc85 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!")
}