what's the annotation for functions with same sign...
# announcements
e
what's the annotation for functions with same signature but return type?
n
i’m not sure i understand the return type is not part of the signature meaning the code doesn’t compile in that case
e
there is an annotation that overcomes this
l
Not sure that’s what you’re looking for, but you can set a
@JvmName
on one of them
e
Copy code
fun foo(): Int
fun foo(): Long
can be make compilable, and it's not
@JvmName
it's an experimental one
uh, I remembered wrong, it was about lambdas return type..
@OverloadResolutionByLambdaReturnType