import "compat2.bond" namespace unittest.compat enum EnumType1 { EnumValue1 = 5, EnumValue2 = 10, EnumValue3 = -10, }; enum EnumType2 { EnumValue1, EnumValue2 = 3, EnumValue3 = -3, EnumValue4, EnumValue5, EnumValue6 = 100 }; struct BasicTypesUninitialized { 10: bool m_bool; 12: int8 m_int8; 23: int16 m_int16; 34: int32 m_int32; 45: int64 m_int64; 56: uint8 m_uint8; 67: uint16 m_uint16; 78: uint32 m_uint32; 89: uint64 m_uint64; 99: double m_double; 100: float m_float; 101: string m_string; 102: wstring m_wstring; }; struct BasicTypes : unittest.compat.another.Another { [foo("bar")] 0: bool m_bool = true; 2: string m_str = "foo"; 3: wstring m_wstr = L"bar"; 14: int8 m_int8 = -14; 15: int16 m_int16 = nothing; 16: required int32 m_int32 = -16; 17: optional int64 m_int64 = -17; 13: required_optional uint8 m_uint8 = 13; 11: uint16 m_uint16 = 11; 12: uint32 m_uint32 = 12; 10: uint64 m_uint64 = 10; 18: double m_double = 18; 20: float m_float = 20; 21: EnumType1 m_enum1 = EnumValue3; 22: unittest.compat.another.EnumType m_enum2 = EnumValue1; 23: unittest.compat.another.EnumType m_enum3 = nothing; }; struct Containers { 0: list l_bool; 1: list l_str; 2: list l_int8; 3: list l_int16; 4: list l_int32; 5: list l_int64; 6: list l_uint8; 7: list l_uint16; 8: list l_uint32; 9: list l_uint64; 10: list l_double; 11: list l_float; 12: list l_enum1; 13: list l_basic; 14: list l_another_enum; 15: list l_another_struct; 20: set s_bool; 21: set s_str; 22: set s_int8; 23: set s_int16; 24: set s_int32; 25: set s_int64 = nothing; 26: set s_uint8; 27: set s_uint16; 28: set s_uint32; 29: set s_uint64; 30: set s_double; 31: set s_float; 32: set s_enum1; 40: map m_bool; 41: map m_str; 42: map m_int8; 43: map m_int16; 44: map m_int32; 45: map m_int64; 46: map m_uint8 = nothing; 47: map m_uint16; 48: map m_uint32; 49: map m_uint64; 50: map m_double; 51: map m_float; 52: map m_enum1; 60: map n_bool; 61: map n_str; 62: map n_int8; 63: map n_int16; 64: map n_int32; 65: map n_int64; 66: map n_uint8; 67: map n_uint16; 68: map n_uint32; 69: map n_uint64; 70: map n_double; 71: map n_float; 72: map n_enum1; 73: map n_basic; 80: list> lv_uint64; 81: vector> vs_uint64; 82: vector>> vm_uint64 = nothing; [bar("foo")] [qux("baz")] 83: map>> mml_float; 90: blob m_blob; 91: list l_blob; 92: map n_blob; }; struct WithBase : BasicTypes { };