]>
Commit | Line | Data |
---|---|---|
3d0c4829 EB |
1 | # FIXME: the error message needs help: we require the base to be a struct |
2 | { 'enum': 'TestEnum', | |
3 | 'data': [ 'value1', 'value2' ] } | |
4 | { 'type': 'TestTypeA', | |
5 | 'data': { 'string': 'str' } } | |
6 | { 'type': 'TestTypeB', | |
7 | 'data': { 'integer': 'int' } } | |
8 | { 'union': 'UnionBase', | |
9 | 'data': { 'kind1': 'TestTypeA', | |
10 | 'kind2': 'TestTypeB' } } | |
11 | { 'union': 'TestUnion', | |
12 | 'base': 'UnionBase', | |
13 | 'discriminator': 'type', | |
14 | 'data': { 'kind1': 'TestTypeA', | |
15 | 'kind2': 'TestTypeB' } } |