summaryrefslogtreecommitdiff
path: root/test/files/neg
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-12-12 19:26:54 +0000
committerPaul Phillips <paulp@improving.org>2010-12-12 19:26:54 +0000
commit1e6c122c44af3d29f8c0f55e7bc3318a9d1b87a6 (patch)
treecf30b89b54676693b102d83a90f61cade407a721 /test/files/neg
parent5d6b870ea8b7b62670d616b055b85b03f061ba2b (diff)
downloadscala-1e6c122c44af3d29f8c0f55e7bc3318a9d1b87a6.tar.gz
scala-1e6c122c44af3d29f8c0f55e7bc3318a9d1b87a6.tar.bz2
scala-1e6c122c44af3d29f8c0f55e7bc3318a9d1b87a6.zip
Told the boy trying to plug the dike holes that...
Told the boy trying to plug the dike holes that he can go home. Instead of trying to catch unpositioned EmptyTrees from the XML parser, don't generate them. It's the kind of commit you would tell your grandkids about if your grandkids could sit still for five seconds: fixes bugs by deleting code and eliminates extraneous error messages to boot (see .check diffs.) No review.
Diffstat (limited to 'test/files/neg')
-rw-r--r--test/files/neg/bug2275b.check5
-rw-r--r--test/files/neg/t3769.check5
-rw-r--r--test/files/neg/xmltruncated7.check7
-rw-r--r--test/files/neg/xmltruncated7.scala3
4 files changed, 12 insertions, 8 deletions
diff --git a/test/files/neg/bug2275b.check b/test/files/neg/bug2275b.check
index 4b61f242d0..0db3eb8ff1 100644
--- a/test/files/neg/bug2275b.check
+++ b/test/files/neg/bug2275b.check
@@ -4,10 +4,7 @@ bug2275b.scala:2: error: in XML literal: in XML content, please use '}}' to expr
bug2275b.scala:2: error: I encountered a '}' where I didn't expect one, maybe this tag isn't closed <br>
{<br>}xx
^
-bug2275b.scala:2: error: ';' expected but identifier found.
- {<br>}xx
- ^
bug2275b.scala:3: error: '}' expected but eof found.
}
^
-four errors found
+three errors found
diff --git a/test/files/neg/t3769.check b/test/files/neg/t3769.check
index 7537ed2ddf..40ccf05ff3 100644
--- a/test/files/neg/t3769.check
+++ b/test/files/neg/t3769.check
@@ -4,7 +4,4 @@ t3769.scala:2: error: in XML literal: expected closing tag of a
t3769.scala:2: error: start tag was here: a>
val x = <b> <c><a></c> {"text"} </b>
^
-t3769.scala:2: error: ';' expected but '{' found.
- val x = <b> <c><a></c> {"text"} </b>
- ^
-three errors found
+two errors found
diff --git a/test/files/neg/xmltruncated7.check b/test/files/neg/xmltruncated7.check
new file mode 100644
index 0000000000..67e7bd4b18
--- /dev/null
+++ b/test/files/neg/xmltruncated7.check
@@ -0,0 +1,7 @@
+xmltruncated7.scala:2: error: in XML literal: in XML content, please use '}}' to express '}'
+ <p>foo}: </p>
+ ^
+xmltruncated7.scala:2: error: I encountered a '}' where I didn't expect one, maybe this tag isn't closed <p>
+ <p>foo}: </p>
+ ^
+two errors found
diff --git a/test/files/neg/xmltruncated7.scala b/test/files/neg/xmltruncated7.scala
new file mode 100644
index 0000000000..7e296a910d
--- /dev/null
+++ b/test/files/neg/xmltruncated7.scala
@@ -0,0 +1,3 @@
+object Test {
+ <p>foo}: </p>
+} \ No newline at end of file