Join Slack
Powered by
<@U0L8CS35L>: If what you need is something simila...
# announcements
k
kingsley
10/07/2016, 3:32 PM
@douglarek
: If what you need is something similar to a static field in Kotlin, use
companion object
with
@JvmField
annotation If otherwise, you need a compile time constant (as described already), you can use
const
. Keep in mind though,
const
can only be used with primitives and String
3
Views
Open in Slack
Previous
Next