Ben Edwards
08/23/2022, 12:34 PMenum class LootType {
POTION, RING, ARMOR
}
class Loot(val name: String, val type: LootType, val value: Double) {
}
Main.kt
fun main(args: Array<String>) {
...
val redPotion = Loot("Red Potion", lootType.POTION, 7.5)
}
I am getting unresolved reference LootType. The Loot.tk file has no errors.August Lilleaas
08/23/2022, 12:36 PMLootType.POTION
(notice the uppercase L)Ben Edwards
08/23/2022, 12:36 PMAugust Lilleaas
08/23/2022, 12:49 PMBen Edwards
08/23/2022, 2:11 PM