]>
Commit | Line | Data |
---|---|---|
dd883c6f | 1 | # we reject a base that is not a struct |
76432d98 MA |
2 | { 'enum': 'Enum', 'data': [ 'a', 'b' ] } |
3 | { 'struct': 'Int', 'data': { 'data': 'int' } } | |
4 | { 'struct': 'Str', 'data': { 'data': 'str' } } | |
5 | { 'union': 'Union', | |
6 | 'base': { 'type': 'Enum' }, | |
7 | 'discriminator': 'type', | |
8 | 'data': { 'a': 'Int', 'b': 'Str' } } | |
895a2a80 | 9 | { 'struct': 'MyType', 'base': 'Union', 'data': { 'c': 'int' } } |