mirror of https://gitee.com/openkylin/qemu.git
11 lines
342 B
JSON
11 lines
342 B
JSON
|
# 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' } }
|