Skip to content

Instantly share code, notes, and snippets.

@xeno-by
Created September 15, 2013 18:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xeno-by/6573434 to your computer and use it in GitHub Desktop.
Save xeno-by/6573434 to your computer and use it in GitHub Desktop.
) else c.Expr[Set[A]] {
def sourceModuleRef(sym: Symbol) = Ident(sym.asInstanceOf[scala.reflect.internal.Symbols#Symbol].sourceModule.asInstanceOf[Symbol])
Apply(Select(reify(Set).tree, newTermName("apply")), children.map(sourceModuleRef(_)))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment