Advertisement
Guest User

Untitled

a guest
Nov 1st, 2014
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.17 KB | None | 0 0
  1. object Test{
  2.     def main(args:Array[String]){
  3.         Fun("printme")
  4.     }
  5. }
  6.  
  7. object Fun{ // Change to "fun" on second compilation
  8.     def apply(s:String){
  9.         println(s)
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement