16 lines
315 B
Plaintext
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))
|
|
)
|
|
)
|