JvmWildcard

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

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.

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

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.

Constructors

JvmWildcard
Link copied to clipboard
expect fun JvmWildcard()
actual fun JvmWildcard()