JvmWildcard

@Target(allowedTargets = [AnnotationTarget.TYPE])
expect annotation class JvmWildcard(source)

Instructs compiler to generate wildcard for annotated type arguments corresponding to parameters with declaration-site variance.

It may be helpful only if declaration seems to be inconvenient to use from Java without wildcard.

Since Kotlin

1.0
@Target(allowedTargets = [AnnotationTarget.TYPE])
actual annotation class JvmWildcard(source)

Instructs the compiler to generate wildcard for annotated type arguments corresponding to parameters with declaration-site variance.

It may be helpful only if declaration seems to be inconvenient to use from Java without wildcard.

See the Kotlin language documentation for more information.

Since Kotlin

1.0