diff options
author | Som Snytt <som.snytt@gmail.com> | 2015-06-24 21:32:07 -0700 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2015-06-24 21:32:07 -0700 |
commit | 91243694982f10d6061edac562b9af32b7bc9f4f (patch) | |
tree | 2b651f9c4bc5e83ab93ed139b95336a6574cbc08 /test/files/run/t9170.scala | |
parent | eab44dd09223974c7515a2413bc461ee3808d682 (diff) | |
download | scala-91243694982f10d6061edac562b9af32b7bc9f4f.tar.gz scala-91243694982f10d6061edac562b9af32b7bc9f4f.tar.bz2 scala-91243694982f10d6061edac562b9af32b7bc9f4f.zip |
SI-9206 Update REPL welcome message
Everyone knows that a `help` command will result in `more information`.
This commit moves the version string to the second line and adds some
verve to the welcome.
If anyone can't live without the old banner, they are now able to
configure it explicitly, so there is still no blood on our hands.
```
$ scala
Welcome to Scala version 2.11.6 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_40).
Type in expressions to have them evaluated.
Type :help for more information.
scala> :quit
$ skala
Welcome to Scala!
version 2.11.7-20150623-155244-eab44dd092 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_40).
Type in expressions for evaluation. Or try :help.
scala> :quit
```
REPL tests now lop off the actual length of the welcome header; or, if
necessary, remove the version number from a header embedded in output.
Diffstat (limited to 'test/files/run/t9170.scala')
-rw-r--r-- | test/files/run/t9170.scala | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/files/run/t9170.scala b/test/files/run/t9170.scala index 67a58d6803..d6cf516615 100644 --- a/test/files/run/t9170.scala +++ b/test/files/run/t9170.scala @@ -6,9 +6,7 @@ object Test extends SessionTest { override def stripMargins = false def session = -"""Type in expressions to have them evaluated. -Type :help for more information. - +""" scala> object Y { def f[A](a: => A) = 1 ; def f[A](a: => Either[Exception, A]) = 2 } <console>:10: error: double definition: def f[A](a: => A): Int at line 10 and |