diff options
author | Paul Phillips <paulp@improving.org> | 2011-05-29 20:19:55 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-05-29 20:19:55 +0000 |
commit | 1125a9cfab5c5bacfd10bf1a559b97437339dbaf (patch) | |
tree | 5d5155cf1465d1796901773a156d4d9e94efb3b2 /test/files/neg | |
parent | 75ec2ba72f17a57060ca5831ccc9e38167e957ae (diff) | |
download | scala-1125a9cfab5c5bacfd10bf1a559b97437339dbaf.tar.gz scala-1125a9cfab5c5bacfd10bf1a559b97437339dbaf.tar.bz2 scala-1125a9cfab5c5bacfd10bf1a559b97437339dbaf.zip |
Fixed a crasher in the scanner when unicode esc...
Fixed a crasher in the scanner when unicode escape sequences offered up
EOF before completion. Also made the repl a little more robust against
crashers in scalac. Treat it like a hostile witness! Closes #4584, no
review.
Diffstat (limited to 'test/files/neg')
-rw-r--r-- | test/files/neg/bug4584.check | 4 | ||||
-rw-r--r-- | test/files/neg/bug4584.scala | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/test/files/neg/bug4584.check b/test/files/neg/bug4584.check new file mode 100644 index 0000000000..0008d9efa5 --- /dev/null +++ b/test/files/neg/bug4584.check @@ -0,0 +1,4 @@ +bug4584.scala:1: error: incomplete unicode escape +class A { val \u2 + ^ +one error found diff --git a/test/files/neg/bug4584.scala b/test/files/neg/bug4584.scala new file mode 100644 index 0000000000..b34aba91a2 --- /dev/null +++ b/test/files/neg/bug4584.scala @@ -0,0 +1 @@ +class A { val \u2
\ No newline at end of file |