Skip to content

Commit a86afae

Browse files
authored
Fix casing in generated Kotlin struct constructor function (google#8849)
* fixes google#8419
1 parent 60910fb commit a86afae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/idl_gen_kotlin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ class KotlinGenerator : public BaseGenerator {
480480
}
481481
if (IsStruct(field.value.type)) {
482482
GenStructBody(*field.value.type.struct_def, writer,
483-
(nameprefix + (field.name + "_")).c_str());
483+
(nameprefix + (namer_.Variable(field) + "_")).c_str());
484484
} else {
485485
writer.SetValue("type", GenMethod(field.value.type));
486486
writer.SetValue("argname", nameprefix + namer_.Variable(field));

0 commit comments

Comments
 (0)