mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-01 09:51:12 +00:00
Fix casing in generated Kotlin struct constructor function (#8849)
* fixes #8419
This commit is contained in:
parent
60910fb7f5
commit
a86afae939
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue