Last active
August 29, 2015 14:19
-
-
Save echeipesh/cfda7a43064f8e0cccb4 to your computer and use it in GitHub Desktop.
Using scala reflection to debug implicit resolution
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
//Source: http://virtuslab.com/blog/debugging-implicits/ | |
import scala.reflect.runtime.universe._ | |
def tree = reify{ list.sorted }.tree | |
//tree: reflect.runtime.universe.Tree | |
show(tree) | |
// Predef.refArrayOps($read.list).sorted(Ordering.ordered(Predef.$conforms)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment