https://kotlinlang.org logo
#getting-started
Title
# getting-started
e

elect

11/16/2023, 9:21 AM
if you have both
Copy code
val organization: ..
fun organization()
is there a way to get a reference to the method without incurring in resolution ambiguity?
e

ephemient

11/16/2023, 9:48 AM
overload resolution will pick the right one if you write
Copy code
val propertyReference: KProperty<...> = ::organization
val functionReference: KFunction<...> = ::organization
👍 1
today i learned 1