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

joelpedraza

10/18/2017, 8:45 PM
bar(::foo)
is an unresolved reference however, receievr type mismatch
k

karelpeeters

10/18/2017, 8:47 PM
Hmm, I thought the compiler did some autocasting around function references with receivers.
Actually
bar(Int::foo)
works for me.
I'm not sure the autocasting behaviour is documented anywhere, the devs have mentioned it a couple of times in this Slack already.
j

joelpedraza

10/18/2017, 8:50 PM
Nice, ty!
2 Views