From 088094b1c82ee38b10d84c4826b740a4e0f5f0fe Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Tue, 20 Sep 2011 15:13:16 +0000 Subject: Changes to Liftcode to use new reflection seman... Changes to Liftcode to use new reflection semantics, where a compiler uses type checking. --- test/disabled/pos/code.scala | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'test/disabled') diff --git a/test/disabled/pos/code.scala b/test/disabled/pos/code.scala index 110e01c619..707dda3e3b 100644 --- a/test/disabled/pos/code.scala +++ b/test/disabled/pos/code.scala @@ -1,3 +1,7 @@ -class Test { - val fun: reflect.Code[Int => Int] = x => x + 1; +object Test extends App { + def foo[T](ys: List[T]) = { + val fun: reflect.Code[Int => Int] = x => x + ys.length + fun + } + println(foo(List(2)).tree) } -- cgit v1.2.3