From 62acd249052f889e9519213fa91bcf212429bc8e Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Thu, 5 Apr 2012 12:44:29 -0700 Subject: Fix for continuations issue with match blocks. Don't type pattern trees with annotations still attached. --- test/files/continuations-run/z1673.check | 0 test/files/continuations-run/z1673.scala | 31 +++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 test/files/continuations-run/z1673.check create mode 100644 test/files/continuations-run/z1673.scala (limited to 'test') diff --git a/test/files/continuations-run/z1673.check b/test/files/continuations-run/z1673.check new file mode 100644 index 0000000000..e69de29bb2 diff --git a/test/files/continuations-run/z1673.scala b/test/files/continuations-run/z1673.scala new file mode 100644 index 0000000000..716b374860 --- /dev/null +++ b/test/files/continuations-run/z1673.scala @@ -0,0 +1,31 @@ +import scala.util.continuations._ + +class MatchRepro { + def s: String @cps[Any] = shift { k => k("foo") } + + def p = { + val k = s + s match { case lit0 => } + } + + def q = { + val k = s + k match { case lit1 => } + } + + def r = { + s match { case "FOO" => } + } + + def t = { + val k = s + k match { case "FOO" => } + } +} + +object Test { + def main(args: Array[String]): Unit = { + val m = new MatchRepro + () + } +} -- cgit v1.2.3