jinbeom hong
04/01/2018, 3:01 PM// source code
fun main(args: Array<String>) {
val value: Int
value = 3
}
// REPL
>>> val value: Int
error: property must be initialized or be abstract
val value: Int
Andreas Sinz
04/01/2018, 3:08 PMvalue
is initialized in the next line, inside the REPL it can't tell if you'll initialize it in the next line or use it without initializing itjinbeom hong
04/01/2018, 3:20 PM