Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class FooBar {
- def Foo(s: String): Unit = println(s)
- // This does not work
- Foo "Bar"
- // This works
- this Foo "Bar"
- // Equivalent to
- Foo("Bar")
- // ... or
- this.Foo("Bar")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement