mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-30 14:40:02 +00:00
Fix casing in generated Kotlin struct constructor function (#8849)
* fixes #8419
This commit is contained in:
@@ -480,7 +480,7 @@ class KotlinGenerator : public BaseGenerator {
|
|||||||
}
|
}
|
||||||
if (IsStruct(field.value.type)) {
|
if (IsStruct(field.value.type)) {
|
||||||
GenStructBody(*field.value.type.struct_def, writer,
|
GenStructBody(*field.value.type.struct_def, writer,
|
||||||
(nameprefix + (field.name + "_")).c_str());
|
(nameprefix + (namer_.Variable(field) + "_")).c_str());
|
||||||
} else {
|
} else {
|
||||||
writer.SetValue("type", GenMethod(field.value.type));
|
writer.SetValue("type", GenMethod(field.value.type));
|
||||||
writer.SetValue("argname", nameprefix + namer_.Variable(field));
|
writer.SetValue("argname", nameprefix + namer_.Variable(field));
|
||||||
|
|||||||
Reference in New Issue
Block a user