From 66f28b5aa86372c16219f9acdaf9648b93fe133f Mon Sep 17 00:00:00 2001 From: Iulian Dragos Date: Tue, 24 Mar 2009 14:20:50 +0000 Subject: Added test files for #1789 and #1761 --- test/files/pos/t1761.scala | 10 ++++++++++ test/files/pos/t1789.scala | 5 +++++ 2 files changed, 15 insertions(+) create mode 100644 test/files/pos/t1761.scala create mode 100644 test/files/pos/t1789.scala (limited to 'test/files/pos') 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) { } } +} -- cgit v1.2.3