diff options
-rw-r--r-- | test/files/pos/t1761.scala | 10 | ||||
-rw-r--r-- | test/files/pos/t1789.scala | 5 |
2 files changed, 15 insertions, 0 deletions
diff --git a/test/files/pos/t1761.scala b/test/files/pos/t1761.scala new file mode 100644 index 0000000000..a3ceeea815 --- /dev/null +++ b/test/files/pos/t1761.scala @@ -0,0 +1,10 @@ +import scala.xml._ + +class Foo { + val elements: Seq[Node] = Nil + val innerTransform: PartialFunction[Elem, String] = { + case Elem(_, l: String, _, _, _ @ _*) if elements.exists(_.label == l) => + l + } +} + diff --git a/test/files/pos/t1789.scala b/test/files/pos/t1789.scala new file mode 100644 index 0000000000..1a37d48d0c --- /dev/null +++ b/test/files/pos/t1789.scala @@ -0,0 +1,5 @@ +object S { + try { } + catch { case _ => } + finally { while(true) { } } +} |