Join Slack
Powered by
I'm porting java to kotlin. i have an interface wi...
# announcements
j
jasondlee
01/23/2019, 2:50 PM
I'm porting java to kotlin. i have an interface with a default method. what's the kotlin equivalent of that?
r
robstoll
01/23/2019, 2:51 PM
you can define methods in interfaces
robstoll
01/23/2019, 2:51 PM
I think there is an experimental annotation in case it needs to be compatible with Java
j
jasondlee
01/23/2019, 2:53 PM
any idea what that annotation is? i have a method on the interface, but the java code that implements that interface isn't seeing the method
d
diesieben07
01/23/2019, 2:53 PM
@JvmDefault
j
jasondlee
01/23/2019, 2:57 PM
thanks!
Open in Slack
Previous
Next