This website requires JavaScript.
Explore
Help
Sign In
OpenE2K
/
qemu-e2k
Watch
13
Star
4
Fork
0
You've already forked qemu-e2k
Code
Issues
4
Pull Requests
Projects
2
Releases
Activity
0ced9531f1
qemu-e2k
/
tests
/
qapi-schema
/
alternate-empty.err
2 lines
83 B
Plaintext
Raw
Normal View
History
Unescape
Escape
qapi: Permit alternates with just one branch A union or alternate without branches makes no sense and doesn't work: it can't be instantiated. A union or alternate with just one branch works, but is degenerate. We accept the former, but reject the latter. Weird. docs/devel/qapi-code-gen.txt doesn't mention the difference. It claims an alternate definition is "is similar to a simple union type". Permit degenerate alternates to make them consistent with unions. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20190913201349.24332-10-armbru@redhat.com>
2019-09-13 22:13:42 +02:00
tests/qapi-schema/alternate-empty.json:2: Alternate 'Alt' cannot have empty 'data'
Reference in New Issue
Copy Permalink