Skip to content

Instantly share code, notes, and snippets.

@paulp
Created October 12, 2014 19:32
Show Gist options
  • Save paulp/155a0d46faee50fa6028 to your computer and use it in GitHub Desktop.
Save paulp/155a0d46faee50fa6028 to your computer and use it in GitHub Desktop.
object GoScala extends App {
class Panda
implicit def f1: Any => String = _ => "Any"
implicit def f2: Panda => String = _ => "Panda"
println(implicitly[Panda => String].apply(new Panda))
}
// % scala GoScala
// Any
//
@nicholas22
Copy link

Omfg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment