blob: 3ae8c06a8992e4880ac55fcb68f63c3e4ae4f82f (
plain)
1
2
3
4
5
6
7
8
9
10
|
# discriminator '*switch' isn't a member of base, 'switch' is
{ 'enum': 'Enum', 'data': [ 'one', 'two' ] }
{ 'struct': 'Base',
'data': { '*switch': 'Enum' } }
{ 'struct': 'Branch', 'data': { 'name': 'str' } }
{ 'union': 'MyUnion',
'base': 'Base',
'discriminator': '*switch',
'data': { 'one': 'Branch',
'two': 'Branch' } }
|