https://kotlinlang.org logo
m

marcinmoskala

07/04/2018, 11:05 PM
Is there some way to prohibit function usage in another extension context? It would be very useful for DSL where some property is reasonable on some level, but not for child. Like tr/td. In standard implementation one will be able to do:
Copy code
table {
    tr { td {} td {} }
    tr { tr{} /*zong*/ }
}