1include "namespace_test1.fbs"; 2 3namespace NamespaceA; 4 5table TableInFirstNS 6{ 7 foo_table:NamespaceB.TableInNestedNS; 8 foo_enum:NamespaceB.EnumInNestedNS; 9 foo_struct:NamespaceB.StructInNestedNS; 10} 11 12// Test switching namespaces inside a file. 13namespace NamespaceC; 14 15table TableInC { 16 refer_to_a1:NamespaceA.TableInFirstNS; 17 refer_to_a2:NamespaceA.SecondTableInA; 18} 19 20namespace NamespaceA; 21 22table SecondTableInA { 23 refer_to_c:NamespaceC.TableInC; 24} 25