Join Slack
Communities
Powered by
is there any reason Kotlin doesn’t allow a body in...
# language-proposals
o
okaymak
03/18/2017, 9:25 PM
is there any reason Kotlin doesn’t allow a body inside an annotation class?
l
louiscad
03/18/2017, 10:18 PM
Annotations are annotations, not logic
louiscad
03/18/2017, 10:18 PM
Annotations can't do more in Java than they can in Kotlin
d
damian
03/21/2017, 12:29 AM
Though you
can
have inner types or static fields on annotations in Java. I couldn't find an issue for this, so I filed one:
https://youtrack.jetbrains.com/issue/KT-16962
4
Views
Open in Slack
Previous
Next