Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2015
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.38 KB | None | 0 0
  1. object exampleone {
  2.   def stampa(implicit messaggio: String) = println(messaggio)
  3.                                                   //> stampa: (implicit messaggio: String)Unit
  4.  
  5.   stampa("Ciao")                                  //> Ciao
  6.  
  7.   implicit val barabba = "Barabba"                //> barabba  : String = Barabba
  8.     stampa                                    //> Barabba
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement