I'm trying to convert a Java code into Kotlin for custom dagger scope creation.
Here is Java code:
@Documented
@Scope
@Retention(RetentionPolicy.RUNTIME)
public @interface CustomScope {
}
Once converted into kotlin here is the result
@Scope
@Documented
@Retention(RetentionPolicy.RUNTIME) annotation class CustomScope
I have a type mismatch with @Retention(RetentionPolicy.RUNTIME)
.I have the following error message :Required Type is AnnotationRetention but RetentionPolicy type was found.
Also @interface seems to have been replaced.