(as I recently found out) inner type aliases captu...
# eap
k
(as I recently found out) inner type aliases capture the type arguments of the class which saves you a lot of typing:
Copy code
class Foo<T> {
    typealias Source = (T) -> String

    fun foo(source: Source) { //no 'T' required here
    }
}