Delegated properties.

This commit is contained in:
Dmitry Petrov
2016-09-01 12:52:49 +03:00
committed by Dmitry Petrov
parent 865d2c43c7
commit 759f0168c2
19 changed files with 415 additions and 58 deletions
@@ -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>()