summaryrefslogtreecommitdiff
path: root/test/files/run/delambdafy_uncurry_byname_method.scala
blob: 0ccc1f2e92bf100d91121e7ac27b6aae258f9c67 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import scala.tools.partest._
import java.io.{Console => _, _}

object Test extends DirectTest {

  override def extraSettings: String = "-usejavacp -Xprint:uncurry -Ydelambdafy:method -Ystop-after:uncurry -d " + testOutput.path

  override def code = """class Foo {
                        |  def bar(x: => String) = x
                        |  
                        |  def foo = bar("")
                        |}
                        |""".stripMargin.trim

  override def show(): Unit = {
    Console.withErr(System.out) {
      compile()
    }
  }
}