Inline methods in interfaces

As long as Kotlin targets the 1.6 class format this may not be possible or have ugly workarounds. The best implementation would be as extension functions (inline functions still exist in the class file), but those are only available in 1.8. Of course a workaround could be to define them on some sort of “companion” class that would automatically be resolved without imports being necessary (in Kotlin, Java would require it).

2 Likes