Having a problem following a tutorial, I think it was because it was written with an older version o...
b
Having a problem following a tutorial, I think it was because it was written with an older version of Android studio. Loot.kt
Copy code
enum class LootType {
    POTION, RING, ARMOR
}

class Loot(val name: String, val type: LootType, val value: Double) {
}
Main.kt
Copy code
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.
a
it should probably be
LootType.POTION
(notice the uppercase L)
šŸ‘ƒ 1
šŸ‘ 1
b
I'm and idiot, its now official šŸ˜‰.
a
yeah, for sure. I’m glad I never make these kinds of mistakes! šŸ™ƒ
šŸ˜‚ 2
😁 1
b
Only my second class