Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- object exampleone {
- def stampa(implicit messaggio: String) = println(messaggio)
- //> stampa: (implicit messaggio: String)Unit
- stampa("Ciao") //> Ciao
- implicit val barabba = "Barabba" //> barabba : String = Barabba
- stampa //> Barabba
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement