https://kotlinlang.org logo
#announcements
Title
# announcements
m

mg6maciej

05/02/2017, 8:10 AM
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

Ruckus

05/02/2017, 2:22 PM
mg6maciej: No,
x
actually takes two params: the receiver (
A
) and the file param, whereas
File::blah
only takes one: the reciever (
File
).
👍 1
5 Views