summaryrefslogblamecommitdiff
path: root/test/files/run/repl-paste-4.scala
blob: cb0a6aa7682ecd94d270392b78984b58514d64c3 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                
                    


                                                
import scala.tools.partest.SessionTest

object Test extends SessionTest {
  def session =
s"""|Type in expressions to have them evaluated.
    |Type :help for more information.
    |
    |scala> :paste $pastie
    |Pasting file $pastie...
    |defined class Foo
    |defined object Foo
    |
    |scala> Foo(new Foo)
    |res0: Int = 7
    |
    |scala> :quit"""
  def pastie = testPath changeExtension "pastie"
}