struct-base-clash-base.json 382 字节
Newer Older
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' } }