summaryrefslogtreecommitdiff
path: root/test/files/continuations-run/z1673.scala
blob: 716b3748608a49b11c5f7c2fec94ab8ef031bb1a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
    ()
  }
}