diff options
author | John Luxford <john@flipsidexr.com> | 2019-06-13 22:25:03 -0500 |
---|---|---|
committer | Robert Winslow <rw@users.noreply.github.com> | 2019-06-13 20:25:03 -0700 |
commit | a6be1d0d749ebf27ecddc423b6a30fc841699c0a (patch) | |
tree | c234f2fc47b6e6fd98f50053bd850d7b2d306f17 /src/idl_gen_go.cpp | |
parent | a7e20b1996f08bc8a4600acc9957b69b88d86e3d (diff) | |
download | flatbuffers-a6be1d0d749ebf27ecddc423b6a30fc841699c0a.tar.gz flatbuffers-a6be1d0d749ebf27ecddc423b6a30fc841699c0a.tar.bz2 flatbuffers-a6be1d0d749ebf27ecddc423b6a30fc841699c0a.zip |
[Go] Fix namespaces on enums (#5406)
Diffstat (limited to 'src/idl_gen_go.cpp')
-rw-r--r-- | src/idl_gen_go.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/idl_gen_go.cpp b/src/idl_gen_go.cpp index f4f5701e..2be00767 100644 --- a/src/idl_gen_go.cpp +++ b/src/idl_gen_go.cpp @@ -143,7 +143,7 @@ class GoGenerator : public BaseGenerator { // Construct the name of the type for this enum. std::string GetEnumTypeName(const EnumDef &enum_def) { - return WrapInNameSpaceAndTrack(cur_name_space_, GoIdentity(enum_def.name)); + return WrapInNameSpaceAndTrack(enum_def.defined_namespace, GoIdentity(enum_def.name)); } // Create a type for the enum values. |