| 1 | # Clash between common member and union variant's common member |
| 2 | # Base's member 'type' clashes with TestTypeA's |
| 3 | |
| 4 | { 'enum': 'TestEnum', |
| 5 | 'data': [ 'value-a', 'value-b' ] } |
| 6 | |
| 7 | { 'enum': 'TestEnumA', |
| 8 | 'data': [ 'value-a1', 'value-a2' ] } |
| 9 | |
| 10 | { 'struct': 'TestTypeA1', |
| 11 | 'data': { 'integer': 'int' } } |
| 12 | |
| 13 | { 'struct': 'TestTypeA2', |
| 14 | 'data': { 'integer': 'int' } } |
| 15 | |
| 16 | { 'union': 'TestTypeA', |
| 17 | 'base': { 'type': 'TestEnumA' }, |
| 18 | 'discriminator': 'type', |
| 19 | 'data': { 'value-a1': 'TestTypeA1', |
| 20 | 'value-a2': 'TestTypeA2' } } |
| 21 | |
| 22 | { 'struct': 'TestTypeB', |
| 23 | 'data': { 'integer': 'int' } } |
| 24 | |
| 25 | { 'union': 'TestUnion', |
| 26 | 'base': { 'type': 'TestEnum' }, |
| 27 | 'discriminator': 'type', |
| 28 | 'data': { 'value-a': 'TestTypeA', |
| 29 | 'value-b': 'TestTypeB' } } |