]>
Commit | Line | Data |
---|---|---|
44bd1276 | 1 | # flat unions require a base |
3d0c4829 | 2 | # TODO: simple unions should be able to use an enum discriminator |
895a2a80 | 3 | { 'struct': 'TestTypeA', |
b86b05ed | 4 | 'data': { 'string': 'str' } } |
895a2a80 | 5 | { 'struct': 'TestTypeB', |
b86b05ed | 6 | 'data': { 'integer': 'int' } } |
3d0c4829 EB |
7 | { 'enum': 'Enum', |
8 | 'data': [ 'value1', 'value2' ] } | |
b86b05ed | 9 | { 'union': 'TestUnion', |
3d0c4829 | 10 | 'discriminator': 'Enum', |
b86b05ed WX |
11 | 'data': { 'value1': 'TestTypeA', |
12 | 'value2': 'TestTypeB' } } |