Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def toto(s: String): Unit = {
- println(s)
- }
- def call(f: String => Unit) {
- f("toto")
- }
- def call(f: Unit => Unit) {
- f()
- }
- call(toto)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement