Join Slack
Powered by
I think you'll get a compile-time error, but it's ...
# getting-started
k
karelpeeters
09/10/2017, 6:59 PM
I think you'll get a compile-time error, but it's easy enough to check yourself 🙂
k
kartikpatodi
09/10/2017, 7:08 PM
Maybe but even if gives a compile time error It was one of the main reasons to abolish multiple inheritance Just saying
k
karelpeeters
09/10/2017, 7:32 PM
Well sure, but just let your users decide if it doesn't matter for you api.
k
kartikpatodi
09/11/2017, 6:24 PM
https://kotlinlang.org/docs/reference/interfaces.html#resolving-overriding-conflicts
k
karelpeeters
09/11/2017, 9:04 PM
Right but that doesn't really help if both interfaces specify a different contract for the shared method.
2
Views
Open in Slack
Previous
Next