Join Slack
Communities
Powered by
I would like to get a behavior like if it was lega...
# announcements
y
ylemoigne
04/25/2018, 1:02 PM
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
gildor
04/25/2018, 1:55 PM
Problem that these methods have the same signature on JVM level. But you can use annotation
@JvmName
to rename them and it should work
Open in Slack
Previous
Next