Internal Change

PiperOrigin-RevId: 629226391
pull/16667/head
Hong Shin 9 months ago committed by Copybara-Service
parent e9c9970eb4
commit 208cae7fd7
  1. 5
      upb/reflection/field_def.c

@ -714,6 +714,11 @@ static void _upb_FieldDef_Create(upb_DefBuilder* ctx, const char* prefix,
f->full_name, (int)f->type_); f->full_name, (int)f->type_);
} }
} }
} else {
if (syntax == kUpb_Syntax_Editions) {
_upb_DefBuilder_Errf(ctx, "Editions proto cannot lack type for field %s",
f->full_name);
}
} }
if (!has_type && has_type_name) { if (!has_type && has_type_name) {

Loading…
Cancel
Save