How come does `run` work with references that acce...
# getting-started
a
How come does
run
work with references that accept an argument, even though it’s defined as
T.run(block: T.() -> R): R = block()
?
i
The functional types
(T) -> R
and
T.() -> R
are assignment compatible.
🙀 1
2
a
Thanks, any place where one can read more about that?
i
Can't find anything about it. Probably the function types http://kotlinlang.org/docs/reference/lambdas.html#function-types section should be extended.