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,4 +1,3 @@
// ERROR: Property must be initialized or be abstract
package pack
import pack.A.Nested
@@ -14,5 +13,5 @@ internal class A @JvmOverloads constructor(nested: Nested = Nested(Nested.FIELD)
}
internal class B {
var nested: Nested
var nested: Nested? = null
}