Skip to content

Commit d690fb2

Browse files
committed
Test lifting of call-by-name args
1 parent 63ace94 commit d690fb2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/run/i2939.scala

+2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ object Tag {
2626

2727
object Test {
2828
def foo(x: Int => Int)(y: Int = 0) = {}
29+
def bar(x: => Int)(y: Int = 0) = {}
2930

3031
def main(args: Array[String]): Unit = {
3132
foo(x => x)()
33+
bar(args.length)()
3234
}
3335
}

0 commit comments

Comments
 (0)