master
json 30 lines 811 Bytes
Raw
1 # Clash between common member and union variant's variant member
2 # Base's member 'teeth' clashes with TestTypeFish's
3
4 { 'enum': 'TestEnum',
5 'data': [ 'animals', 'plants' ] }
6
7 { 'enum': 'TestAnimals',
8 'data': [ 'fish', 'birds'] }
9
10 { 'struct': 'TestTypeFish',
11 'data': { 'scales': 'int', 'teeth': 'int' } }
12
13 { 'struct': 'TestTypeBirds',
14 'data': { 'feathers': 'int' } }
15
16 { 'union': 'TestTypeAnimals',
17 'base': { 'atype': 'TestAnimals' },
18 'discriminator': 'atype',
19 'data': { 'fish': 'TestTypeFish',
20 'birds': 'TestTypeBirds' } }
21
22 { 'struct': 'TestTypePlants',
23 'data': { 'integer': 'int' } }
24
25 { 'union': 'TestUnion',
26 'base': { 'type': 'TestEnum',
27 'teeth': 'int' },
28 'discriminator': 'type',
29 'data': { 'animals': 'TestTypeAnimals',
30 'plants': 'TestTypePlants' } }