Typing @JvmField only once in Spellbook did not give an error and printed correctly, when Jhava was run.
class Spellbook {
@JvmField
val spells = listOf(“Magic Ms L.”, “Lay on Hans”)companion object {
val MAX_SPELL_COUNT = 10
}
}
Typing @JvmField only once in Spellbook did not give an error and printed correctly, when Jhava was run.
class Spellbook {
@JvmField
val spells = listOf(“Magic Ms L.”, “Lay on Hans”)companion object {
val MAX_SPELL_COUNT = 10
}
}