0.5.0 #70

Merged
altavir merged 49 commits from dev into master 2021-08-13 21:42:33 +03:00
Showing only changes of commit 1037c45c0d - Show all commits

View File

@ -85,7 +85,7 @@ public fun Context.withEnv(block: ContextBuilder.() -> Unit): Context {
}
val builder = ContextBuilder(this, name + "env", properties).apply(block)
val requiresFork = builder.factories.values.any { (factory, meta) ->
val requiresFork = builder.factories.any { (factory, meta) ->
!contains(factory, meta)
} || ((properties as Meta) == builder.meta)
return if (requiresFork) builder.build() else this