You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SelfInvocationContext is a special interface that actually works like trait. It has invoke() extension function that opens scope with this as a reciever:
public operator fun <T : SelfInvocationContext> T.invoke(block: T.() -> Unit): T = apply(block)
It simplifies DSL creation (see Axis or Legend API for example), but it complicates work with Kandy in Gradle projects, since user need invoke import (and IDEA doesn't even suggest to add this import!).
The text was updated successfully, but these errors were encountered:
SelfInvocationContext is a special interface that actually works like trait. It has
invoke()
extension function that opens scope with this as a reciever:It simplifies DSL creation (see
Axis
orLegend
API for example), but it complicates work with Kandy in Gradle projects, since user needinvoke
import (and IDEA doesn't even suggest to add this import!).The text was updated successfully, but these errors were encountered: