Bernhard
08/16/2024, 8:10 PMclass Node(var name: String)
class NodeWithoutName
fun node(block: Node.() -> Unit) {}
fun nodeWithoutName(block: NodeWithoutName.() -> Unit) {}
node {
name = "test"
nodeWithoutName {
name = "test"
}
}
Joffrey
08/16/2024, 8:12 PM@MyDsl
that is itself marked with @DslMarker
Joffrey
08/16/2024, 8:13 PMBernhard
08/16/2024, 8:13 PM