summaryrefslogtreecommitdiff
path: root/test/files/neg/bug4069.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-12-11 15:31:23 +0000
committerPaul Phillips <paulp@improving.org>2010-12-11 15:31:23 +0000
commit933148f71e1254089d036b2428a1c51cb2816c56 (patch)
tree0d5cb5db6d771464756975a493c54e63f41dfeaa /test/files/neg/bug4069.scala
parent262ee3a852f278f97b083a05376de0eab96c805d (diff)
downloadscala-933148f71e1254089d036b2428a1c51cb2816c56.tar.gz
scala-933148f71e1254089d036b2428a1c51cb2816c56.tar.bz2
scala-933148f71e1254089d036b2428a1c51cb2816c56.zip
Turned an assert/compiler crash into an error m...
Turned an assert/compiler crash into an error message. Admittedly the error output is still terrible (the XML positioning looks like it came from an RNG) but more helpful than the crash. Also misc advantage of a handy new method. Closes #4069, no review.
Diffstat (limited to 'test/files/neg/bug4069.scala')
-rw-r--r--test/files/neg/bug4069.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/neg/bug4069.scala b/test/files/neg/bug4069.scala
new file mode 100644
index 0000000000..80df6ec16d
--- /dev/null
+++ b/test/files/neg/bug4069.scala
@@ -0,0 +1,10 @@
+object ParserBug {
+ 1 match {
+ case 1 =>
+ <div>
+ { 1 match { case 1 => "1"; case 2 => "2" }
+ </div>
+ case 2 =>
+ <div/>
+ }
+} \ No newline at end of file