-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Allow duplicate numbers in enums when aliases are enabled
- Loading branch information
1 parent
c144218
commit 1e75d6e
Showing
4 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
syntax = "proto3"; | ||
|
||
package test.duplicate_number; | ||
|
||
message Compressor { | ||
enum CompressionLevel { | ||
option allow_alias = true; | ||
|
||
DEFAULT = 0; | ||
BEST_SPEED = 1; | ||
COMPRESSION_LEVEL_1 = 1; | ||
COMPRESSION_LEVEL_2 = 2; | ||
COMPRESSION_LEVEL_3 = 3; | ||
BEST_COMPRESSION = 3; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters