summaryrefslogblamecommitdiff
path: root/test/files/run/repl-paste-4.scala
blob: 90f0c1802b42eded8640143904d6eb0adffc7138 (plain) (tree)
1
2
3
4
5
6




                                      
     







                            
                    


                                                
import scala.tools.partest.SessionTest

object Test extends SessionTest {
  def session =
s"""|
    |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"
}