|
Scala example source code file (t4396.scala)
The Scala t4396.scala source code// #43896 trait M extends DelayedInit { def delayedInit(body : => Unit) { println("hallo") body println("bye") } } class C(init : Int) extends M { def foo = init println("constructor") var x = init println("out:"+x) } // #4380 object Main { def main(argv: Array[String]) { class Bip { class Foo { override def toString() = "foo" } object Main extends App { val cbn = new Foo() } Main.main(Array()) println(Main.cbn) } new Bip } } object Test extends App { new C(22) Main.main(Array()) } Other Scala examples (source code examples)Here is a short list of links related to this Scala t4396.scala source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.