diff options
author | Martin Odersky <odersky@gmail.com> | 2011-07-30 21:04:43 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2011-07-30 21:04:43 +0000 |
commit | c0db3f2d065e22796a2c917c6c3b0f14f3982cf0 (patch) | |
tree | a21a5982ec9d0a6311843b2e1397192a3a64aecd /test/files | |
parent | d0c5e4be5554f4862da0690ac0315a4433fcb5d5 (diff) | |
download | scala-c0db3f2d065e22796a2c917c6c3b0f14f3982cf0.tar.gz scala-c0db3f2d065e22796a2c917c6c3b0f14f3982cf0.tar.bz2 scala-c0db3f2d065e22796a2c917c6c3b0f14f3982cf0.zip |
LiftCode works again, now integrated with new r...
LiftCode works again, now integrated with new reflection library.
Other changes: def Literal(x: Any) has been deprecated, and all its uses removed.
Modifiers has lost positions as fourth case class argument; is now a field, mirroring Tree.pos (this removes junk in patterns and makes reification simpler). Review by extempore.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/t2886.check | 5 | ||||
-rw-r--r-- | test/files/run/t2886.scala | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/test/files/run/t2886.check b/test/files/run/t2886.check new file mode 100644 index 0000000000..5fe1e73a45 --- /dev/null +++ b/test/files/run/t2886.check @@ -0,0 +1,5 @@ +((x: scala.Predef.String) => { + val x$1 = x; + val x$2 = x; + Test.test(x$2, x$1) +}) diff --git a/test/files/run/t2886.scala b/test/files/run/t2886.scala new file mode 100644 index 0000000000..eb392f0c58 --- /dev/null +++ b/test/files/run/t2886.scala @@ -0,0 +1,7 @@ +object Test { + def test(name: String, address: String) = null + def main(args: Array[String]) = { + val tree = scala.reflect.Code.lift((x:String) => test(address=x,name=x)).tree + println(tree) + } +} |