| ... | @@ -2743,6 +2743,9 @@ test "simple union" { | ... | @@ -2743,6 +2743,9 @@ test "simple union" { |
| 2743 | <p> | 2743 | <p> |
| 2744 | In order to use {#link|switch#} with a union, it must be a {#link|Tagged union#}. | 2744 | In order to use {#link|switch#} with a union, it must be a {#link|Tagged union#}. |
| 2745 | </p> | 2745 | </p> |
| | 2746 | <p> |
| | 2747 | To initialize a union when the tag is a {#link|comptime#}-known name, see {#link|@unionInit#}. |
| | 2748 | </p> |
| 2746 | | 2749 | |
| 2747 | {#header_open|Tagged union#} | 2750 | {#header_open|Tagged union#} |
| 2748 | <p>Unions can be declared with an enum tag type. | 2751 | <p>Unions can be declared with an enum tag type. |