diff options
author | phaller <hallerp@gmail.com> | 2012-05-07 00:10:07 +0200 |
---|---|---|
committer | phaller <hallerp@gmail.com> | 2012-05-07 00:10:07 +0200 |
commit | 96e42cfd7e58c4be5f83975e463a7b9d3bd7eec9 (patch) | |
tree | 16f4200035c109e43a9b72d4609156093cf538b0 /test/pending | |
parent | 7cac6334d4437ff54c4979799574045501f64135 (diff) | |
download | scala-96e42cfd7e58c4be5f83975e463a7b9d3bd7eec9.tar.gz scala-96e42cfd7e58c4be5f83975e463a7b9d3bd7eec9.tar.bz2 scala-96e42cfd7e58c4be5f83975e463a7b9d3bd7eec9.zip |
Add test for t5695 in pending/run
Diffstat (limited to 'test/pending')
-rw-r--r-- | test/pending/run/t5695.check | 2 | ||||
-rw-r--r-- | test/pending/run/t5695/part_1.scala | 12 | ||||
-rw-r--r-- | test/pending/run/t5695/part_2.scala | 8 |
3 files changed, 22 insertions, 0 deletions
diff --git a/test/pending/run/t5695.check b/test/pending/run/t5695.check new file mode 100644 index 0000000000..d50069ab4f --- /dev/null +++ b/test/pending/run/t5695.check @@ -0,0 +1,2 @@ +.. +.. diff --git a/test/pending/run/t5695/part_1.scala b/test/pending/run/t5695/part_1.scala new file mode 100644 index 0000000000..b8e8f8e52f --- /dev/null +++ b/test/pending/run/t5695/part_1.scala @@ -0,0 +1,12 @@ +import language.experimental.macros +import scala.reflect.makro.Context + +object Defs { + + def mkInt = macro mkIntImpl + def mkIntImpl(c: Context): c.Expr[Any] = { + println(c.enclosingApplication) + c.reify{ 23 } + } + +} diff --git a/test/pending/run/t5695/part_2.scala b/test/pending/run/t5695/part_2.scala new file mode 100644 index 0000000000..d34219437d --- /dev/null +++ b/test/pending/run/t5695/part_2.scala @@ -0,0 +1,8 @@ +import Defs._ + +object Test extends App { + + val i1 = mkInt + val i2 = identity(mkInt) + +} |