Fix oneof generator - forgot to provide variables...

pull/515/head
Jon Skeet 10 years ago
parent 7532f0256f
commit a8dae140c6
  1. 1
      src/google/protobuf/compiler/csharp/csharp_primitive_field.cc

@ -159,6 +159,7 @@ void PrimitiveOneofFieldGenerator::GenerateMembers(io::Printer* printer) {
" $oneof_name$_ = value ?? $default_value$;\n");
}
printer->Print(
variables_,
" $oneof_name$Case_ = $oneof_property_name$OneofCase.$property_name$;\n"
" }\n"
"}\n");

Loading…
Cancel
Save