Skip to content

Commit

Permalink
fix to split init to reflect changes from dce work.
Browse files Browse the repository at this point in the history
---
Signed-off-by: Brandon Neth <[email protected]>
  • Loading branch information
brandon-neth committed Jan 29, 2024
1 parent 7b4170d commit d3fe0f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/rst/language/spec/variables.rst
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ contain an initialization expression of the same type.

Any variables declared in a particular scope that are initialized with
split init in multiple branches of a conditional or ``select``
must be initialized in the same order in all branches.
must be initialized in the same order in all branches that do not
unconditionally return.

*Example (simple-split-init.chpl)*

Expand Down

0 comments on commit d3fe0f7

Please sign in to comment.