summaryrefslogtreecommitdiff
path: root/tests/MyGame/Example/Referrable.kt
diff options
context:
space:
mode:
authorAnton Bobukh <abobukh@google.com>2023-01-10 10:03:39 -0800
committerGitHub <noreply@github.com>2023-01-10 10:03:39 -0800
commitb50b6be60a3647b5a320498b9534b6f74450c2b1 (patch)
treee20789a54583e5eb78e579115b49cd828af69e78 /tests/MyGame/Example/Referrable.kt
parent7bf83f5ea06149866193163b29794ca80133e14c (diff)
downloadflatbuffers-b50b6be60a3647b5a320498b9534b6f74450c2b1.tar.gz
flatbuffers-b50b6be60a3647b5a320498b9534b6f74450c2b1.tar.bz2
flatbuffers-b50b6be60a3647b5a320498b9534b6f74450c2b1.zip
[Kotlin] Control the generation of reflection with --reflect-names (#7775)
* [Kotlin] Control the generation of reflection with --reflect-names. Tested: ``` $ cmake -G "Unix Makefiles" && make && ./tests/flatc/main.py ... KotlinTests.EnumValAttributes [PASSED] KotlinTests.EnumValAttributes_ReflectNames [PASSED] KotlinTests: 2 of 2 passsed ... 35 of 35 tests passed ``` * [Kotlin] Fix SampleBinary by converting Byte to UByte for ubyte fields. * [Kotlin] Annotate all generated classes with kotlin.ExperimentalUnsignedTypes.
Diffstat (limited to 'tests/MyGame/Example/Referrable.kt')
-rw-r--r--tests/MyGame/Example/Referrable.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/MyGame/Example/Referrable.kt b/tests/MyGame/Example/Referrable.kt
index 819af370..9d4d2e6a 100644
--- a/tests/MyGame/Example/Referrable.kt
+++ b/tests/MyGame/Example/Referrable.kt
@@ -19,6 +19,7 @@ import java.nio.ByteOrder
import kotlin.math.sign
@Suppress("unused")
+@kotlin.ExperimentalUnsignedTypes
class Referrable : Table() {
fun __init(_i: Int, _bb: ByteBuffer) {