blob: 3633352c395363935f79f0d573c8c3c0094609f8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
class ASTNode {
lazy val x = 42
}
class BlockStmt extends ASTNode
class ClassDecl extends BlockStmt {
lazy val y = true
}
object Test extends Application {
val n = new ClassDecl ()
println (n.x)
println (n.y)
}
|