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 -2
View File
@@ -1,8 +1,7 @@
// ERROR: Property must be initialized or be abstract
internal open class Base {
internal inner class Nested
}
internal class Derived : Base() {
var field: Base.Nested
var field: Base.Nested? = null
}