Created
November 15, 2019 12:56
-
-
Save dmitriigriazin/29421d190baea9b8f9059aa6b18a5877 to your computer and use it in GitHub Desktop.
Kotlin initialization
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open class Constants(val a: Unit = print("a")) { | |
val x: Unit = print("x") | |
val int by lazy { | |
print("int") | |
1 | |
} | |
init { | |
var z: Unit = print("z") | |
} | |
val b = print("b") | |
companion object { | |
var FOO: Unit = print("FOO") | |
} | |
val y: Unit = print("y") | |
} |
Author
dmitriigriazin
commented
Dec 3, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment