why don't you write at the end of your code: `else...
# announcements
z
why don't you write at the end of your code:
else -> throw RuntimeException()
combined with a unit test?
Copy code
try {
                    ETest.values().forEach {
                        TestEnumExhaustive(it)
                    }
                } catch (e:Exception){
                    fail("Exception thrown")
                }
                assert(true)