diff options
Diffstat (limited to 'test/files/run/repl-bare-expr.scala')
-rw-r--r-- | test/files/run/repl-bare-expr.scala | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/files/run/repl-bare-expr.scala b/test/files/run/repl-bare-expr.scala new file mode 100644 index 0000000000..df9849fa6d --- /dev/null +++ b/test/files/run/repl-bare-expr.scala @@ -0,0 +1,16 @@ +import scala.tools.partest.ReplTest + +object Test extends ReplTest { + def code = """ +2 ; 3 +{ 2 ; 3 } +5 ; 10 ; case object Cow ; 20 ; class Moo { override def toString = "Moooooo" } ; 30 ; def bippy = { + 1 + + 2 + + 3 } ; bippy+88+11 + +object Bovine { var x: List[_] = null } ; case class Ruminant(x: Int) ; bippy * bippy * bippy +Bovine.x = List(Ruminant(5), Cow, new Moo) +Bovine.x + """ +}
\ No newline at end of file |