summaryrefslogblamecommitdiff
path: root/test/files/run/repl-paste.check
blob: 171447214f212f9f31cbdb03a16f0d730c0a664d (plain) (tree)
1
2
3
4
5
6
7


                                           



                                         










                      
 


                                        
                     

            
            
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 object Dingus
x: Int = 110

scala> :quit