This short but ugly boilerplate makes abstracting over path-dependently-typed macro methods much more bearable: implicit def ext(c: blackbox.Context): Ext[c.type] = new Ext(c) class Ext[Ctx <: blackbox.Context](ctx: Ctx) { import ctx._, universe._ // macro methods in here }
-
Show this thread
Note that you can't use an implicit class because the lose the specific dependent-type of the `ctx` path. Also note that you're probably just better off using @milessabin's https://github.com/milessabin/macro-compat/ …!
5:35 PM - 9 Feb 2018
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.