Having a problem following a tutorial, I think it ...
# getting-started
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