Delegated properties.
This commit is contained in:
committed by
Dmitry Petrov
parent
865d2c43c7
commit
759f0168c2
@@ -0,0 +1,8 @@
|
||||
val test1 by lazy { 42 }
|
||||
|
||||
class C(val map: MutableMap<String, Any>) {
|
||||
val test2 by lazy { 42 }
|
||||
var test3 by map
|
||||
}
|
||||
|
||||
var test4 by hashMapOf<String, Any>()
|
||||
Reference in New Issue
Block a user