JvmDefaultWithCompatibility

@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class JvmDefaultWithCompatibility(source)

Forces the compiler to generate compatibility accessors for the annotated class or interface.

In other words, this annotation makes the compiler generate the annotated class or interface in the -jvm-default=enable mode. For an interface, DefaultImpls accessors are generated in addition to the JVM default methods. For a class, implementations that call super methods are generated.

Used only with -jvm-default=no-compatibility.

Since Kotlin

1.6