Test for evaluating properties lazily
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
fun main(args : Array<String>) {
|
||||
println("Hello, world!")
|
||||
println(p)
|
||||
}
|
||||
|
||||
|
||||
val p: Int
|
||||
get() {
|
||||
println("Gotcha")
|
||||
return 3
|
||||
}
|
||||
Reference in New Issue
Block a user