Implement (/inherit/~extend) annotation in Kotlin
In Java I have the possibility to "implement" annotations. Sample Java annotation: @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) public @interface JavaClassAnno { String[] value(); } Sample Java "implementation": class MyAnnotationLiteral extends AnnotationLiteral<JavaClassAnno> implements JavaClassAnno { // <--- works in Java private String value; public MyAnnotationLiteral(String value) { this.value = value; } @Override public String[] value() { return new String[] { value }; } } Trying to port that to Kotlin doesn't work as it says that the annotation is final and therefore