diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/repl-assign.check | 14 | ||||
-rw-r--r-- | test/files/run/repl-assign.scala | 10 |
2 files changed, 24 insertions, 0 deletions
diff --git a/test/files/run/repl-assign.check b/test/files/run/repl-assign.check new file mode 100644 index 0000000000..0181985f08 --- /dev/null +++ b/test/files/run/repl-assign.check @@ -0,0 +1,14 @@ +Type in expressions to have them evaluated. +Type :help for more information. + +scala> +scala> x: Int = 10 + +scala> y: Int = 11 + +scala> x: Int = 12 + +scala> y: Int = 13 + +scala> +scala> diff --git a/test/files/run/repl-assign.scala b/test/files/run/repl-assign.scala new file mode 100644 index 0000000000..ee3c1649d8 --- /dev/null +++ b/test/files/run/repl-assign.scala @@ -0,0 +1,10 @@ +import scala.tools.partest.ReplTest + +object Test extends ReplTest { + def code = """ +var x = 10 +var y = 11 +x = 12 +y = 13 + """ +}
\ No newline at end of file |