summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@epfl.ch>2012-08-08 09:56:29 -0700
committerAdriaan Moors <adriaan.moors@epfl.ch>2012-08-08 09:56:29 -0700
commit589ac216d97d7bd2a03dda84a71622459e10a8f7 (patch)
treee00576e1e4f6af917da24d82afb90c6a9c2c311b /test/files
parent7d3b2de7b52fec492bc63296d5adf076f68faf0a (diff)
parent9d330e3c839a52ddcb508ffb3c2660ce244fb92b (diff)
downloadscala-589ac216d97d7bd2a03dda84a71622459e10a8f7.tar.gz
scala-589ac216d97d7bd2a03dda84a71622459e10a8f7.tar.bz2
scala-589ac216d97d7bd2a03dda84a71622459e10a8f7.zip
Merge pull request #1064 from adriaanm/ticket-6145
SI-6145 lax typing of args to synthetic case-labels
Diffstat (limited to 'test/files')
-rw-r--r--test/files/pos/t6145.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/pos/t6145.scala b/test/files/pos/t6145.scala
new file mode 100644
index 0000000000..28334d4420
--- /dev/null
+++ b/test/files/pos/t6145.scala
@@ -0,0 +1,11 @@
+object Test {
+ // the existential causes a cast and the cast makes searchClass not be in tail position
+ // can we get rid of the useless cast?
+ @annotation.tailrec
+ final def searchClass: Class[_] = {
+ "packageName" match {
+ case _ =>
+ searchClass
+ }
+ }
+} \ No newline at end of file