Thread
#strikt
    dave08

    dave08

    11 months ago
    How's about something like this to help in asserting against sealed classes/interfaces children types (not too sure about the name though...), I seem to do this alot...:
    inline fun <reified T, R> Assertion.Builder<*>.getFromA(noinline function: T.() -> R): Assertion.Builder<R> =
            isA<T>().get(function.describe(), function)
    christophsturm

    christophsturm

    11 months ago
    pretty cool!