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