diff options
author | Paul Phillips <paulp@improving.org> | 2011-04-27 18:36:04 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-04-27 18:36:04 +0000 |
commit | 6a988aeff0f426480ce50ebfbe0dcb50c3f4753a (patch) | |
tree | 041fa2490174f12bf3bc1fe099b61ee44ae2e5f6 /test/files | |
parent | 1a443ebb205a2e79951d212567fca0d7bd7dcd7e (diff) | |
download | scala-6a988aeff0f426480ce50ebfbe0dcb50c3f4753a.tar.gz scala-6a988aeff0f426480ce50ebfbe0dcb50c3f4753a.tar.bz2 scala-6a988aeff0f426480ce50ebfbe0dcb50c3f4753a.zip |
Fixed a booch I made in io.Position's positioning.
Closes #4498, no review.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/io-position.check | bin | 0 -> 126 bytes | |||
-rw-r--r-- | test/files/run/io-position.scala | 13 |
2 files changed, 13 insertions, 0 deletions
diff --git a/test/files/run/io-position.check b/test/files/run/io-position.check Binary files differnew file mode 100644 index 0000000000..09f743d750 --- /dev/null +++ b/test/files/run/io-position.check diff --git a/test/files/run/io-position.scala b/test/files/run/io-position.scala new file mode 100644 index 0000000000..7e570ea29e --- /dev/null +++ b/test/files/run/io-position.scala @@ -0,0 +1,13 @@ +object Test { + Console.setErr(Console.out) + + def main(args: Array[String]): Unit = { + try { + xml.parsing.ConstructingParser.fromSource(io.Source.fromString("<foo>"), false).document() + } catch { + case e:Exception => println(e.getMessage) + } + } + +} + |