kotlin var init check
snippet in kotlin

kotlin var init check

user7062

lateinit var file: File    

if (this::file.isInitialized) { ... }