Created
April 29, 2014 09:15
-
-
Save mandubian/11394893 to your computer and use it in GitHub Desktop.
Any idea to make this typecheck? How should I declare T to make it usable in this expression?
This file contains 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
val rhs = api.typecheck(q"type $l[T] = _root_.scalaz.OptionT[scala.concurrent.Future, T]") | |
println("RHS:" + rhs) | |
// gives | |
RHS:type Tata[T] = scalaz.OptionT[scala.concurrent.Future,<error>] | |
// and my global macro then fails with (even if I don't put rhs in my tree) | |
[error] not found: type T | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment