Skip to content

Instantly share code, notes, and snippets.

@echeipesh
Last active August 29, 2015 14:19
Show Gist options
  • Save echeipesh/cfda7a43064f8e0cccb4 to your computer and use it in GitHub Desktop.
Save echeipesh/cfda7a43064f8e0cccb4 to your computer and use it in GitHub Desktop.
Using scala reflection to debug implicit resolution
//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