blob: d0ae4814f42b9fe3815faea87fcbcf690b2212b3 (
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)
}
|