Files
flatbuffers/tests/namespace_test/namespace_test2.fbs
William Bain efcbdc7698 [Rust] Ensure unions are referenced with the correct path (#6422)
* Add codegen test for namespaced unions

* [Rust] Handle cross-namespace union use

* [Rust] Test namespace handling

* [Rust] Drop trailing whitespace in codegen

* [Rust] Set flags in generate_code.bat to match .sh

* [C#] Add additional namespace test file
2021-01-25 09:33:47 -08:00

26 lines
500 B
Plaintext

include "namespace_test1.fbs";
namespace NamespaceA;
table TableInFirstNS
{
foo_table:NamespaceB.TableInNestedNS;
foo_enum:NamespaceB.EnumInNestedNS;
foo_union:NamespaceB.UnionInNestedNS;
foo_struct:NamespaceB.StructInNestedNS;
}
// Test switching namespaces inside a file.
namespace NamespaceC;
table TableInC {
refer_to_a1:NamespaceA.TableInFirstNS;
refer_to_a2:NamespaceA.SecondTableInA;
}
namespace NamespaceA;
table SecondTableInA {
refer_to_c:NamespaceC.TableInC;
}