diff options
author | Dmitry Petrashko <dark@d-d.me> | 2014-05-20 16:04:39 +0200 |
---|---|---|
committer | Dmitry Petrashko <dark@d-d.me> | 2014-05-20 16:04:39 +0200 |
commit | deea15e9b0c56b7f55f5e40665d5e00baef4f028 (patch) | |
tree | bfb268ddfb648c4e3bba5081494f6bc0f506fe20 /tests/pos/t1480.scala | |
parent | 8a4186ff782efefb98686aa35bf7f5dd1418210d (diff) | |
parent | 6b090d1204b5ee553cf9f04b83e48904dcd88183 (diff) | |
download | dotty-deea15e9b0c56b7f55f5e40665d5e00baef4f028.tar.gz dotty-deea15e9b0c56b7f55f5e40665d5e00baef4f028.tar.bz2 dotty-deea15e9b0c56b7f55f5e40665d5e00baef4f028.zip |
Merge pull request #133 from dotty-staging/more-tests
More tests
Diffstat (limited to 'tests/pos/t1480.scala')
-rw-r--r-- | tests/pos/t1480.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/pos/t1480.scala b/tests/pos/t1480.scala new file mode 100644 index 000000000..1d9f94d2e --- /dev/null +++ b/tests/pos/t1480.scala @@ -0,0 +1,6 @@ +class Foo{ + def compare(newP : Any, oldP : Any) : Boolean = (newP,oldP) match { + case (newP : AnyRef, oldP : AnyRef) if newP == oldP => newP == oldP + case (newS : Symbol, oldS: Symbol) if newS == oldS => newS == oldS + } +} |