aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/delambdafy_uncurry_byname_method.scala
blob: 1adeec8433902eea8ed380fbd4311e092345363d (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: => Int) = x
                        |  
                        |  def foo = bar(1)
                        |}
                        |""".stripMargin.trim

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