fun main() {
val d: Int // 1
println(d) // 3
//d: Int // 1
//println(e) // 2
//Target platform: JVMRunning on kotlin v. 1.3.31
//Declares a variable without initialization.
//An attempt to use the variable causes a compiler error: Variable 'd' must be initialized.
}
Variable 'd' must be initialized
- Declares a variable without initialization.
- An attempt to use the variable causes a compiler error:
Variable 'e' must be initialized
.
沒有留言:
張貼留言