Fix scheme initialization

This commit is contained in:
Alexander Nozik 2020-12-24 23:17:32 +03:00
parent 6389a25aaf
commit 76968f07e5

View File

@ -18,7 +18,9 @@ public open class Scheme(
public var items: MutableItemProvider = items
internal set(value) {
//Fix problem with `init` blocks in specifications
field = value.withDefault(field)
field = value.apply {
field.rootNode?.let { update(it) }
}
}
override var descriptor: NodeDescriptor? = descriptor