JvmDefault: remove -Xjvm-default modes "enable" and "compatibility"

#KT-54746
This commit is contained in:
Alexander Udalov
2023-04-22 00:28:51 +02:00
committed by Space Team
parent e0b5ae7781
commit a0790047f7
4 changed files with 16 additions and 23 deletions
@@ -78,10 +78,9 @@ internal class InterfaceLowering(val context: JvmBackendContext) : IrElementTran
* create a bridge from DefaultImpls of derived to DefaultImpls of base, unless
* - the implementation is private, or belongs to java.lang.Object,
* or is a stub for function with default parameters ($default)
* - we're in -Xjvm-default=compatibility|all-compatibility mode, in which case we go via
* - we're in -Xjvm-default=all-compatibility mode, in which case we go via
* accessors on the parent class rather than the DefaultImpls if inherited method is compiled to JVM default
* - we're in -Xjvm-default=enable|all mode, and we have that default implementation,
* in which case we simply leave it.
* - we're in -Xjvm-default=all mode, and we have that default implementation, in which case we simply leave it.
*
* ```
* interface A { fun foo() = 0 }