diff options
author | James Iry <jamesiry@gmail.com> | 2013-05-29 12:53:20 -0700 |
---|---|---|
committer | James Iry <jamesiry@gmail.com> | 2013-05-29 12:53:20 -0700 |
commit | 810a6de757a44d7d481e0ee1bd9c2fb8abe6043d (patch) | |
tree | 851f9953d3da078e5dc4b9529b396a4bf06af153 /test/files/pos/t7516/A_1.scala | |
parent | 6cc39842f79bcf266ca3f49eca1f2a1ba46ed817 (diff) | |
parent | 851e39991e7a929e1d83d5e35a024d5b9bd0b75f (diff) | |
download | scala-810a6de757a44d7d481e0ee1bd9c2fb8abe6043d.tar.gz scala-810a6de757a44d7d481e0ee1bd9c2fb8abe6043d.tar.bz2 scala-810a6de757a44d7d481e0ee1bd9c2fb8abe6043d.zip |
Merge pull request #2601 from retronym/ticket/7516
SI-7516 Revert "SI-7234 Make named args play nice w. depmet types"
Diffstat (limited to 'test/files/pos/t7516/A_1.scala')
-rw-r--r-- | test/files/pos/t7516/A_1.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/pos/t7516/A_1.scala b/test/files/pos/t7516/A_1.scala new file mode 100644 index 0000000000..3bba19966d --- /dev/null +++ b/test/files/pos/t7516/A_1.scala @@ -0,0 +1,9 @@ +import scala.reflect._,macros._, scala.language.experimental.macros + +object A { + def impl[T: c.WeakTypeTag](c: Context)(t: c.Expr[T]): c.Expr[List[T]] = { + val r = c.universe.reify { List(t.splice) } + c.Expr[List[T]]( c.resetLocalAttrs(r.tree) ) + } + def demo[T](t: T): List[T] = macro impl[T] +} |