diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2009-03-24 14:20:50 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2009-03-24 14:20:50 +0000 |
commit | 66f28b5aa86372c16219f9acdaf9648b93fe133f (patch) | |
tree | 8a3a11c5afe64cb4cb2b264e5921b0ff9ed23918 /test/files/pos | |
parent | 89ddf2d6e707ce4f71633b1816b57d3282cfcf76 (diff) | |
download | scala-66f28b5aa86372c16219f9acdaf9648b93fe133f.tar.gz scala-66f28b5aa86372c16219f9acdaf9648b93fe133f.tar.bz2 scala-66f28b5aa86372c16219f9acdaf9648b93fe133f.zip |
Added test files for #1789 and #1761
Diffstat (limited to 'test/files/pos')
-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) { } } +} |