Join Slack
Communities
Powered by
If you want them to be accessible in Java in the “...
# getting-started
p
paulblessing
05/26/2016, 8:12 PM
If you want them to be accessible in Java in the “usual” way, you can annotate with `@JvmField`:
Copy code
object Flag { @JvmField val ZERO = 0 @JvmField val ONE = 1 }
then in Java,
int flag = Flag.ZERO;
Open in Slack
Previous
Next