lateinit val v1: String lateinit var v2: String? lateinit var v3: String lateinit var v4: Int fun main(args: Array<String>) { println(v3) }
Standard input is empty
WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.intellij.openapi.util.JDOMUtil$2 to constructor com.sun.xml.internal.stream.XMLInputFactoryImpl() WARNING: Please consider reporting this to the maintainers of com.intellij.openapi.util.JDOMUtil$2 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release JNA Warning: IOException removing temporary files: JNA temporary directory '/tmp' is not writable prog.kt:1:1: error: 'lateinit' modifier is allowed only on mutable properties lateinit val v1: String ^ prog.kt:2:1: error: 'lateinit' modifier is not allowed on properties of nullable types lateinit var v2: String? ^ prog.kt:4:1: error: 'lateinit' modifier is not allowed on properties of primitive types lateinit var v4: Int ^
Standard output is empty