mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
The first change here is swapping the isCompatibility and hasJvmDefault checks. Otherwise behavior could be different depending on -Xjvm-default mode even for non-JvmDefault declarations, which makes little sense. Another change is avoiding generating $default stubs for fake overrides in interfaces, which replicates the behavior of the current backend. (Note that this change also fixes the first problem on the newly added tests, but the first change seems useful anyway.)