mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-02 10:17:51 +00:00
When creating a CreateXxx(...) method for a simple table type, enum-type fields with a non-zero default must have an explicit cast for the respective argument default value, because in C#, there is an implicit cast from int to an enum only for 0. Also, added an example of such type into the example monster_test type, so that we test this feature.
9 lines
131 B
Go
9 lines
131 B
Go
// automatically generated, do not modify
|
|
|
|
package Example
|
|
|
|
const (
|
|
AnyNONE = 0
|
|
AnyMonster = 1
|
|
AnyTestSimpleTableWithEnum = 2
|
|
)
|