forked from BigfootDev/flatbuffers
Kotlin code generation was producing wrong logic for accessors of vector of union elements. This was shadowed by the fact[1] that asserts in Kotlin are silently ignored unless the flag "-ea" is passed to the JVM. The tests are also updated to enable asserts. 1 - https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/assert.html