Join Slack
Powered by
When doing a method inference, can I somehow fix t...
# getting-started
j
Jan
01/08/2022, 12:39 PM
When doing a method inference, can I somehow fix this?
Jan
01/08/2022, 12:39 PM
grafik.png
a
Alex
01/08/2022, 1:08 PM
Not very sure if its the syntax should be as following below
message.channel::send{}
j
Jan
01/08/2022, 1:59 PM
nah thats not what I want you can call this method later with invoke() but the problem is I don't get the method reference because of this error
l
lorefnon
01/08/2022, 3:55 PM
If you are using the latest kotlin you should be able to take advantage of disambiguation through type signature:
https://discuss.kotlinlang.org/t/function-reference-to-overloaded-functions/6066
6
Views
Open in Slack
Previous
Next