Update Scheme.kt

Add default empty block.
This commit is contained in:
Mikhail Zelenyi 2020-10-13 07:59:57 +03:00 committed by GitHub
parent 4ab9751bea
commit ccb11b52c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,5 +91,5 @@ public open class MetaScheme(
public fun Meta.asScheme(): MetaScheme = MetaScheme(this)
public fun <T : Configurable> Meta.toScheme(spec: Specification<T>, block: T.() -> Unit): T =
public fun <T : Configurable> Meta.toScheme(spec: Specification<T>, block: T.() -> Unit = {}): T =
spec.wrap(this).apply(block)