diff options
Diffstat (limited to 'test/files/pos/t1761.scala')
-rw-r--r-- | test/files/pos/t1761.scala | 10 |
1 files changed, 10 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 + } +} + |