summaryrefslogtreecommitdiff
path: root/test/files/run/repl-paste.check
blob: 50589433cdd9d8d1fb5788826db4d79d2218ace3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Type in expressions to have them evaluated.
Type :help for more information.

scala> :paste
// Entering paste mode (ctrl-D to finish)


      class Dingus
      {
        private val x = 5
        def y = Dingus.x * 2
      }
      object Dingus
      {
        private val x = 55
      }

      val x = (new Dingus).y


// Exiting paste mode, now interpreting.

defined class Dingus
defined module Dingus
x: Int = 110

scala>