mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-01 19:58:15 +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)) {
|
||||
GenStructBody(*field.value.type.struct_def, writer,
|
||||
(nameprefix + (field.name + "_")).c_str());
|
||||
(nameprefix + (namer_.Variable(field) + "_")).c_str());
|
||||
} else {
|
||||
writer.SetValue("type", GenMethod(field.value.type));
|
||||
writer.SetValue("argname", nameprefix + namer_.Variable(field));
|
||||
|
||||
Reference in New Issue
Block a user