historical/m0-applesillicon.git/xnu-qemu-arm64-5.1.0/tests/qapi-schema/flat-union-discriminator-bad-name.json

11 lines
342 B
JSON
Raw Normal View History

2024-01-16 11:20:27 -06:00
# 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' } }