Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // Hello world on Scala programming language
- //
- // See explanation at: http://joydevel.blogspot.ru/2013/01/scala-is-fucking-good-language-my-first.html
- //
- object Main {
- def main(args: Array[String]) {
- trait somegood { def good(o:Any) = {} }
- object fucking extends somegood{
- override def good(o:Any) {
- println("yeah!")
- }
- }
- object language;
- object scala {
- def is (o:Any):somegood = fucking
- }
- scala is fucking good language
- //will output: yeah!
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement