J2K: not initialized field of non-primitive type should have null initializer
#KT-11544 Fixed
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
// ERROR: Property must be initialized or be abstract
|
||||
internal class Library {
|
||||
val myString: String
|
||||
val myString: String? = null
|
||||
}
|
||||
|
||||
internal class User {
|
||||
fun main() {
|
||||
Library().myString.isEmpty()
|
||||
Library().myString!!.isEmpty()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user