Created
July 22, 2019 22:57
-
-
Save pshirshov/d8c8d2076d514dae93f65cc56bc05b6f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait Fake | |
def materialize1[T[_]]: LightTypeTag = macro TypeTagExampleImpl.makeTag[T[Fake]] | |
def makeTag[T: c.WeakTypeTag]: c.Expr[LightTypeTag] = { | |
import c._ | |
val wtt = implicitly[WeakTypeTag[T]] | |
println(wtt) | |
??? | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment