diff options
author | Martin Odersky <odersky@gmail.com> | 2011-09-20 15:13:16 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2011-09-20 15:13:16 +0000 |
commit | 088094b1c82ee38b10d84c4826b740a4e0f5f0fe (patch) | |
tree | 126be0feb2d2c910692f141117110f3e0fd29971 /test/disabled | |
parent | f6d4d84dd7eb5de3e7f698c7f627d483b6999142 (diff) | |
download | scala-088094b1c82ee38b10d84c4826b740a4e0f5f0fe.tar.gz scala-088094b1c82ee38b10d84c4826b740a4e0f5f0fe.tar.bz2 scala-088094b1c82ee38b10d84c4826b740a4e0f5f0fe.zip |
Changes to Liftcode to use new reflection seman...
Changes to Liftcode to use new reflection semantics, where a compiler
uses type checking.
Diffstat (limited to 'test/disabled')
-rw-r--r-- | test/disabled/pos/code.scala | 8 |
1 files changed, 6 insertions, 2 deletions
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) } |