From 40884972d9de5933503cd1f75c1a8f42360a8b62 Mon Sep 17 00:00:00 2001 From: Lex Spoon Date: Tue, 2 Oct 2007 16:57:28 +0000 Subject: Minor changes to improve the output when there are type errors in the user's code --- test/files/run/interpreter.check | 37 ++++++++++++++++++++++++------------- 1 file changed, 24 insertions(+), 13 deletions(-) (limited to 'test/files/run/interpreter.check') 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> :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> :1: error: '=' expected but '=>' found. -def x => y => z - ^ + def x => y => z + ^ :1: error: illegal start of simple expression -def x => y => z - ^ + def x => y => z + ^ scala> :1: error: identifier expected but integer literal found. -[1,2,3] - ^ -:1: error: ']' expected but eof found. -[1,2,3] - ^ + [1,2,3] + ^ +:1: error: ']' expected but ';' found. + [1,2,3] + ^ scala> scala> scala> scala> | | | | res2: scala.xml.Elem = - + 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> -- cgit v1.2.3