Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- object Test{
- def main(args:Array[String]){
- Fun("printme")
- }
- }
- object Fun{ // Change to "fun" on second compilation
- def apply(s:String){
- println(s)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement