aboutsummaryrefslogtreecommitdiff
path: root/tests/qapi-schema/struct-base-clash-deep.json
blob: 646d680ad6213b038e8f31da4752f09fb9cecc86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Reject attempts to duplicate QMP members
# Here, 'name' would have to appear twice on the wire, locally and
# indirectly for the grandparent base; the collision doesn't care that
# one instance is optional.

##
# @Base:
##
{ 'struct': 'Base',
  'data': { 'name': 'str' } }
##
# @Mid:
##
{ 'struct': 'Mid',
  'base': 'Base',
  'data': { 'value': 'int' } }
##
# @Sub:
##
{ 'struct': 'Sub',
  'base': 'Mid',
  'data': { '*name': 'str' } }