A noob question. But does the order of `init` bloc...
# getting-started
s
A noob question. But does the order of
init
block and field initialization matter ?
Copy code
class A(registry:Registry){

init{
registry.registerB(b)
}
val b:B= b=B()

}
Gives me a
Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull
exception. Moving the
init
block after the initialization works.