https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
b

bkenn

07/10/2018, 7:01 PM
Has anyone had trouble with type aliasing java annotations with values? I tried to find some examples in the kotlin library but couldn't find any. For instance I have have in common an annotation such as
expect annotation class NodeEntity(val label: String = "")
and on the jvm target
actual typealias NodeEntity = org.neo4j.ogm.annotation.NodeEntity
. The annotation I want to type alias has one field definition of
String label() default "";
. I am getting
Parameter 'label' has conflicting values in the expected and actual annotation
.
u

udalov

07/11/2018, 11:08 AM
b

bkenn

07/12/2018, 11:58 PM
yep, definitely. thanks for the link. Ill upvote it.
24 Views