diff options
author | Paul Phillips <paulp@improving.org> | 2011-07-02 00:18:57 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-07-02 00:18:57 +0000 |
commit | f346e54d24847e0529ce1e5ee43e47a038a4961e (patch) | |
tree | 7c8ab24d02900eabba77d133a44959a8c764dfad /test/files/run/repl-bare-expr.check | |
parent | 56917143ae6da7a8da532c8b0a45d64b04f6986b (diff) | |
download | scala-f346e54d24847e0529ce1e5ee43e47a038a4961e.tar.gz scala-f346e54d24847e0529ce1e5ee43e47a038a4961e.tar.bz2 scala-f346e54d24847e0529ce1e5ee43e47a038a4961e.zip |
Wholesale backport of scala/tools/nsc/interpret...
Wholesale backport of scala/tools/nsc/interpreter with small adjustments
to compile against 2.9.0-1. This commit passes all the tests and is
mima-verified binary compatible.
Diffstat (limited to 'test/files/run/repl-bare-expr.check')
-rw-r--r-- | test/files/run/repl-bare-expr.check | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/test/files/run/repl-bare-expr.check b/test/files/run/repl-bare-expr.check new file mode 100644 index 0000000000..04daa48232 --- /dev/null +++ b/test/files/run/repl-bare-expr.check @@ -0,0 +1,36 @@ +Type in expressions to have them evaluated. +Type :help for more information. + +scala> + +scala> 2 ; 3 +res0: Int = 3 + +scala> { 2 ; 3 } +res1: Int = 3 + +scala> 5 ; 10 ; case object Cow ; 20 ; class Moo { override def toString = "Moooooo" } ; 30 ; def bippy = { + 1 + + 2 + + 3 } ; bippy+88+11 +defined module Cow +defined class Moo +bippy: Int +res2: Int = 105 + +scala> + +scala> object Bovine { var x: List[_] = null } ; case class Ruminant(x: Int) ; bippy * bippy * bippy +defined module Bovine +defined class Ruminant +res3: Int = 216 + +scala> Bovine.x = List(Ruminant(5), Cow, new Moo) +Bovine.x: List[Any] = List(Ruminant(5), Cow, Moooooo) + +scala> Bovine.x +res4: List[Any] = List(Ruminant(5), Cow, Moooooo) + +scala> + +scala> |