# nested struct in struct and classes accessed from a third class struct Enclosing struct Nested def geti as int return 1 struct Nested2 def geti as int return 2 struct NestedOther def geti as int return 10 def geti as int return 99 class EnclosingClass struct Nested is public def geti as int return 101 struct Nested2 def geti as int return 102 struct NestedOther def geti as int return 110 def geti as int return 199 class Program def main s = Enclosing() assert s.geti == 99 sen = Enclosing.Nested() assert sen.geti == 1 senn1 as Enclosing.Nested.Nested2 = Enclosing.Nested.Nested2() assert senn1.geti == 2 senn = Enclosing.Nested.Nested2() assert senn.geti == 2 seno = Enclosing.NestedOther() assert seno.geti == 10 c = EnclosingClass() assert c.geti == 199 cen = EnclosingClass.Nested() assert cen.geti == 101 cenn = EnclosingClass.Nested.Nested2() assert cenn.geti == 102 ceno = EnclosingClass.NestedOther() assert ceno.geti == 110