summaryrefslogtreecommitdiff
path: root/tests/qapi-schema/struct-base-clash-base.json
blob: 0c840258c9f9d2a9d5931a3f02ef9014f322499f (plain)
1
2
3
4
5
6
7
8
9
# Struct member 'base'
# FIXME: this parses, but then fails to compile due to a duplicate 'base'
# (one explicit in QMP, the other used to box the base class members).
# We should either reject the collision at parse time, or change the
# generated struct to allow this to compile.
{ 'struct': 'Base', 'data': {} }
{ 'struct': 'Sub',
  'base': 'Base',
  'data': { 'base': 'str' } }