Commit c0bd3dd9 authored by Mike Kruskal's avatar Mike Kruskal Committed by Copybara-Service
Browse files

Implement helper function FieldDescriptor::legacy_enum_field_treated_as_closed...

Implement helper function FieldDescriptor::legacy_enum_field_treated_as_closed to support legacy enum field behavior.

Proto2 fields with types corresponding to proto3 enums are treated as closed today, despite the EnumDescriptor reporting that they're open.  This will allow syntax users to depend on this non-conformant behavior which will be getting it's own feature in Edition zero.

PiperOrigin-RevId: 512218773
parent 1b1ca24a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment