summaryrefslogtreecommitdiff
path: root/test/files/run/reify_closure5a.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/reify_closure5a.scala')
-rw-r--r--test/files/run/reify_closure5a.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/run/reify_closure5a.scala b/test/files/run/reify_closure5a.scala
index 0ac53d5479..20994abff0 100644
--- a/test/files/run/reify_closure5a.scala
+++ b/test/files/run/reify_closure5a.scala
@@ -4,9 +4,9 @@ import reflect.runtime.Mirror.ToolBox
object Test extends App {
def foo[T](ys: List[T]): Int => Int = {
- val fun: reflect.Code[Int => Int] = x => {
+ val fun = reflect.Code.lift{(x: Int) => {
x + ys.length
- }
+ }}
val reporter = new ConsoleReporter(new Settings)
val toolbox = new ToolBox(reporter)