Hey guys, I had my first "ahah, static values are ...
# announcements
g
Hey guys, I had my first "ahah, static values are objects now! so I can do this!!" moment:
Copy code
enum class Thingy { A, B, C }

//...

if(value in Thingy.run { listOf(A, B) })
except, suprise, thats no good, since the enum object
Thingy
doesnt have constant values
A
and
B
on it. Is this by design? is there are more elegant way to write my if check than static-imports or
if(value == Thingy.A || value == Thingy.B)
?