diff options
author | Ingo Maier <ingo.maier@epfl.ch> | 2009-09-23 10:12:32 +0000 |
---|---|---|
committer | Ingo Maier <ingo.maier@epfl.ch> | 2009-09-23 10:12:32 +0000 |
commit | dc65ebea9e2e5953a23a11c4df87d0fd7c81f19b (patch) | |
tree | c338610aa5d662fc7722622d7c0ffcebbad566b4 /test | |
parent | 9e54361343f80925ab7be84239ce37fb021bd7b9 (diff) | |
download | scala-dc65ebea9e2e5953a23a11c4df87d0fd7c81f19b.tar.gz scala-dc65ebea9e2e5953a23a11c4df87d0fd7c81f19b.tar.bz2 scala-dc65ebea9e2e5953a23a11c4df87d0fd7c81f19b.zip |
Proxy.equals catches null case (fix for #2366)
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/proxy.check | 4 | ||||
-rw-r--r-- | test/files/run/proxy.scala | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/test/files/run/proxy.check b/test/files/run/proxy.check new file mode 100644 index 0000000000..f311ce0361 --- /dev/null +++ b/test/files/run/proxy.check @@ -0,0 +1,4 @@ +false +true +false +false
\ No newline at end of file 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 |