J2K: not initialized field of non-primitive type should have null initializer
#KT-11544 Fixed
This commit is contained in:
+1
-2
@@ -1,4 +1,3 @@
|
||||
// ERROR: Property must be initialized or be abstract
|
||||
package pack
|
||||
|
||||
import pack.A.*
|
||||
@@ -14,5 +13,5 @@ internal class A @JvmOverloads constructor(nested: Nested = Nested(Nested.FIELD)
|
||||
}
|
||||
|
||||
internal class B {
|
||||
var nested: Nested
|
||||
var nested: Nested? = null
|
||||
}
|
||||
Reference in New Issue
Block a user