summaryrefslogtreecommitdiff
path: root/test/files/run/delambdafy_uncurry_byname_inline.scala
blob: 8f480fa80488def10994ac9599a4140be6321872 (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:inline -d " + testOutput.path

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

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