```sealed interface CellType { data object Norm...
# compiler
r
Copy code
sealed interface CellType {

  data object Normal : CellType
  
  companion object {
    val DEFAULT: PlpItemViewCellType = Normal
  }
}
Upgrading our project to k-2.2.0, calling
CellType.DEFAULT
returns null. Is it a compiler bug?
y
Seems like initialisation order stuff. Not sure if it's a bug since idk if Kotlin guarantees a specific init order. Simplest solution would be
val DEFAULT: PlpItemViewCellType get() = Normal
r
Yeah, that certainly fixed it.
I am wondering why it didn't exist pre 2.2.0 version or if it became more strict in k-2.2.0