Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // when can you safely omit parens for functions with args in the repl?
- // not here
- def can(b: Any) = b
- can "dance"
- <console>:1: error: ';' expected but string literal found.
- can "dance"
- // not here
- def can[B](b: B) = b
- can "dance"
- <console>:1: error: ';' expected but string literal found.
- can "dance"
- // when there is a class binding?
- class I {
- def can(b: Any) = b
- }
- new I can "dance" // => "dance"
Add Comment
Please, Sign In to add comment