J2K: not initialized field of non-primitive type should have null initializer

#KT-11544 Fixed
This commit is contained in:
Natalia Ukhorskaya
2016-03-23 13:54:13 +03:00
parent 8616c9588d
commit 4bc4f0bce7
16 changed files with 73 additions and 24 deletions
@@ -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()
}
}