Fix scheme to meta transformation

This commit is contained in:
Alexander Nozik 2020-01-29 21:50:49 +03:00
parent f906fbdb0a
commit 819ab3ab20

View File

@ -39,7 +39,7 @@ open class Scheme() : Configurable, Described, MetaRepr {
*/
open val defaultLayer: Meta get() = DefaultLayer(Name.EMPTY)
override fun toMeta(): Meta = config.seal()
override fun toMeta(): Meta = Laminate(config, defaultLayer)
private inner class DefaultLayer(val path: Name) : MetaBase() {
override val items: Map<NameToken, MetaItem<*>> =