summaryrefslogtreecommitdiff
path: root/test/files/run/proxy.scala
diff options
context:
space:
mode:
authorIngo Maier <ingo.maier@epfl.ch>2009-09-23 10:12:32 +0000
committerIngo Maier <ingo.maier@epfl.ch>2009-09-23 10:12:32 +0000
commitdc65ebea9e2e5953a23a11c4df87d0fd7c81f19b (patch)
treec338610aa5d662fc7722622d7c0ffcebbad566b4 /test/files/run/proxy.scala
parent9e54361343f80925ab7be84239ce37fb021bd7b9 (diff)
downloadscala-dc65ebea9e2e5953a23a11c4df87d0fd7c81f19b.tar.gz
scala-dc65ebea9e2e5953a23a11c4df87d0fd7c81f19b.tar.bz2
scala-dc65ebea9e2e5953a23a11c4df87d0fd7c81f19b.zip
Proxy.equals catches null case (fix for #2366)
Diffstat (limited to 'test/files/run/proxy.scala')
-rw-r--r--test/files/run/proxy.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/run/proxy.scala b/test/files/run/proxy.scala
new file mode 100644
index 0000000000..d9c7bcf69f
--- /dev/null
+++ b/test/files/run/proxy.scala
@@ -0,0 +1,9 @@
+object Test extends Application {
+ val p = new Proxy {
+ def self = 2
+ }
+ println(p equals 1)
+ println(p equals 2)
+ println(p equals 3)
+ println(p equals null)
+} \ No newline at end of file