starwing / lua-protobuf

A Lua module to work with Google protobuf
MIT License
1.75k stars 387 forks source link

enum 不支持 alias 选项啊 #51

Closed jj4jj closed 6 years ago

jj4jj commented 6 years ago

如果enum 中包含 两个numbers 相等, check_enum.check_dup 会报错 。 在声明有 option allow_alias=true; 时候应当忽略 check_dup 。

测试的proto 节选如下:

image