Clone
Rodrigo B. de Oliveira
committed
on 08 May 16
Generate API extensions for `Action<*>` methods
The generated extensions replace the `Action<T>` parameters by function
literals with [custo… Show more
Generate API extensions for `Action<*>` methods

The generated extensions replace the `Action<T>` parameters by function

literals with [custom receiver

objects](https://kotlinlang.org/docs/reference/lambdas.html#function-literals-with-receiver)

to provide an experience closer to the Groovy DSL.

Unfortunately it seems the Kotlin compiler will still pick the original

`Action<*>` methods from the interface instead of the generated

extensions with custom receiver objects.

See #1

Show less

master + 337 more