summaryrefslogtreecommitdiff
path: root/test/files/neg/xmlcorner.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/xmlcorner.scala')
-rw-r--r--test/files/neg/xmlcorner.scala16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/files/neg/xmlcorner.scala b/test/files/neg/xmlcorner.scala
index 9f1c55bce4..042ec05e68 100644
--- a/test/files/neg/xmlcorner.scala
+++ b/test/files/neg/xmlcorner.scala
@@ -4,3 +4,19 @@ class foo {
class bar {
val wrong = <bla: />
}
+
+// this "pos" test is only included as a parser test
+object pos
+{
+ def wrap(f : Int => Unit) = f(5)
+
+ wrap({ v =>
+ if(v == 5) {
+ val n = {
+ val m = (<a>{}</a>)
+ <div>{ v }</div>
+ }
+ ()
+ }
+ })
+}