summaryrefslogtreecommitdiff
path: root/test/files/run/patmat_unapp_abstype.check
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@epfl.ch>2011-11-08 11:36:30 +0000
committerAdriaan Moors <adriaan.moors@epfl.ch>2011-11-08 11:36:30 +0000
commit5cc3dad991cde9c55c49c451a93a496a16b3afe1 (patch)
tree4f3404809ada09beb28fe5de19463b098d4026a4 /test/files/run/patmat_unapp_abstype.check
parent0362b6af90a14e919d3ee1fe38216830b1828ec9 (diff)
downloadscala-5cc3dad991cde9c55c49c451a93a496a16b3afe1.tar.gz
scala-5cc3dad991cde9c55c49c451a93a496a16b3afe1.tar.bz2
scala-5cc3dad991cde9c55c49c451a93a496a16b3afe1.zip
smarter bridges to unapplies
wraps the call to a bridged synthetic unapply(Seq) in a defensive if-test: if (x.isInstanceOf[expectedType]) real.unapply(x.asInstanceOf[expectedType]) else None NOTE: the test is WRONG, but it has to be due to #1697/#2337 -- once those are fixed, this one should generate the expected output
Diffstat (limited to 'test/files/run/patmat_unapp_abstype.check')
-rw-r--r--test/files/run/patmat_unapp_abstype.check2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/files/run/patmat_unapp_abstype.check b/test/files/run/patmat_unapp_abstype.check
new file mode 100644
index 0000000000..ac28ccdb95
--- /dev/null
+++ b/test/files/run/patmat_unapp_abstype.check
@@ -0,0 +1,2 @@
+TypeRef
+none of the above