| author | |
| committer | |
| log | 273c2b5c25006bcb5d759da61ad5cbd247896050 |
| tree | 9f1cbb5c289992a25d6e36a321e54cb17415ea51 |
| parent | 3ad9349f09e5afdacd64b8ab257ae1d09859f48a |
| signature |
1 files changed, 3 insertions(+), 0 deletions(-)
doc/langref.html.in+3| ... | ... | @@ -2743,6 +2743,9 @@ test "simple union" { |
| 2743 | 2743 | <p> |
| 2744 | 2744 | In order to use {#link|switch#} with a union, it must be a {#link|Tagged union#}. |
| 2745 | 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 | 2750 | {#header_open|Tagged union#} |
| 2748 | 2751 | <p>Unions can be declared with an enum tag type. |