I would like to get a behavior like if it was lega...
# announcements
y
I would like to get a behavior like if it was legal to write
Copy code
fun foo(p:String?):Bar? { .. }
fun foo(p:String):Bar { .. }
Is there an annotation or something to achieve this ?
g
Problem that these methods have the same signature on JVM level. But you can use annotation
@JvmName
to rename them and it should work