Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. $ scala -Xprint:typer -e "implicit def f[A, B <: A]: A => B = x => x"
  2. [[syntax trees at end of typer]] // scalacmd1608811321047988530.scala
  3. package <empty> {
  4. object Main extends scala.AnyRef {
  5. def <init>(): Main.type = {
  6. Main.super.<init>();
  7. ()
  8. };
  9. def main(args: Array[String]): Unit = {
  10. final class $anon extends scala.AnyRef {
  11. def <init>(): <$anon: AnyRef> = {
  12. $anon.super.<init>();
  13. ()
  14. };
  15. implicit private def f[A, B <: A]: A => B = ((x: A) => $anon.this.f[A, Nothing].apply(x))
  16. };
  17. {
  18. new $anon();
  19. ()
  20. }
  21. }
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement