Given this compiles: ``` fun x(aFunc: A.(file: Fil...
# announcements
m
Given this compiles:
Copy code
fun x(aFunc: A.(file: File) -> Unit) = Unit
x { it.blah() }
should also this compile?
Copy code
x(File::blah)
r
mg6maciej: No,
x
actually takes two params: the receiver (
A
) and the file param, whereas
File::blah
only takes one: the reciever (
File
).
👍 1