summaryrefslogtreecommitdiff
path: root/test/files/run
diff options
context:
space:
mode:
authorLex Spoon <lex@lexspoon.org>2007-10-02 16:57:28 +0000
committerLex Spoon <lex@lexspoon.org>2007-10-02 16:57:28 +0000
commit40884972d9de5933503cd1f75c1a8f42360a8b62 (patch)
tree6f59dcff6d225ec51e6cba2ca3777d0b1a0eca61 /test/files/run
parent0b00cb9fc3ca6f186157703073e0432857b0e7cb (diff)
downloadscala-40884972d9de5933503cd1f75c1a8f42360a8b62.tar.gz
scala-40884972d9de5933503cd1f75c1a8f42360a8b62.tar.bz2
scala-40884972d9de5933503cd1f75c1a8f42360a8b62.zip
Minor changes to improve the output when
there are type errors in the user's code
Diffstat (limited to 'test/files/run')
-rw-r--r--test/files/run/interpreter.check37
1 files changed, 24 insertions, 13 deletions
diff --git a/test/files/run/interpreter.check b/test/files/run/interpreter.check
index 1778b51a87..31dadfd65b 100644
--- a/test/files/run/interpreter.check
+++ b/test/files/run/interpreter.check
@@ -22,8 +22,8 @@ scala> four: anotherint = 4
scala> <console>:5: error: type mismatch;
found : java.lang.String("hello")
required: anotherint
-val bogus: anotherint = "hello"
- ^
+ val bogus: anotherint = "hello"
+ ^
scala> defined trait PointlessTrait
@@ -135,29 +135,40 @@ scala>
scala>
scala>
scala> <console>:1: error: '=' expected but '=>' found.
-def x => y => z
- ^
+ def x => y => z
+ ^
<console>:1: error: illegal start of simple expression
-def x => y => z
- ^
+ def x => y => z
+ ^
scala> <console>:1: error: identifier expected but integer literal found.
-[1,2,3]
- ^
-<console>:1: error: ']' expected but eof found.
-[1,2,3]
- ^
+ [1,2,3]
+ ^
+<console>:1: error: ']' expected but ';' found.
+ [1,2,3]
+ ^
scala>
scala>
scala>
scala> | | | | res2: scala.xml.Elem =
<a>
-<b d="dd" c="c"></b></a>
+ <b d="dd" c="c"></b></a>
scala>
-scala> | | You typed two blank lines. Starting a new command.
+scala>
+scala> | | | |
+scala>
+scala>
+scala>
+scala> | | | res3: java.lang.String =
+
+ hello
+ there
+
scala>
+scala> | | You typed two blank lines. Starting a new command.
+
scala>
scala>