diff options
Diffstat (limited to 'test/files/run/repl-paste.scala')
-rw-r--r-- | test/files/run/repl-paste.scala | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/files/run/repl-paste.scala b/test/files/run/repl-paste.scala new file mode 100644 index 0000000000..e2ebab1e45 --- /dev/null +++ b/test/files/run/repl-paste.scala @@ -0,0 +1,19 @@ +import scala.tools.partest.ReplTest + +object Test extends ReplTest { + def code = ":paste\n" + ( + """ + class Dingus + { + private val x = 5 + def y = Dingus.x * 2 + } + object Dingus + { + private val x = 55 + } + + val x = (new Dingus).y + """ + ) +}
\ No newline at end of file |