diff options
author | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-08-08 09:56:29 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-08-08 09:56:29 -0700 |
commit | 589ac216d97d7bd2a03dda84a71622459e10a8f7 (patch) | |
tree | e00576e1e4f6af917da24d82afb90c6a9c2c311b /test/files/pos | |
parent | 7d3b2de7b52fec492bc63296d5adf076f68faf0a (diff) | |
parent | 9d330e3c839a52ddcb508ffb3c2660ce244fb92b (diff) | |
download | scala-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/pos')
-rw-r--r-- | test/files/pos/t6145.scala | 11 |
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 |