From 208cae7fd7fdfc7fef6eddded07c2c7431bf0d8f Mon Sep 17 00:00:00 2001 From: Hong Shin Date: Mon, 29 Apr 2024 16:48:41 -0700 Subject: [PATCH] Internal Change PiperOrigin-RevId: 629226391 --- upb/reflection/field_def.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/upb/reflection/field_def.c b/upb/reflection/field_def.c index d5597f4b2e..6a70361b6b 100644 --- a/upb/reflection/field_def.c +++ b/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_); } } + } 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) {