Files
wasmtime/crates/wiggle/tests/keywords_union.witx
2021-02-18 14:45:20 -08:00

16 lines
315 B
Plaintext

(typename $union
(enum (@witx tag u8)
$self
$power
)
)
(typename $self
(variant (@witx tag $union)
;; A union variant that will expand to a strict keyword `Self`.
(case $self (@witx pointer f32))
;; Oh it's true, that there's power in a union!
(case $power (@witx pointer f32))
)
)