spicy
spicy copied to clipboard
Allow use of `&synchronize` on unit switch fields
We currently do not allow the use of &synchronize on unit switch fields, e.g., the following is not possible:
public type X = unit {
switch {
-> a: b"A" &synchronize;
-> b: b"B" &synchronize;
-> c: b"C" &synchronize;
};
};
We should consider allowing this if
-
all cases
&synchronize -
or maybe the
switchitself is&synchronize, e.g.,public type X = unit { switch { -> a: b"A"; -> b: b"B"; -> c: b"C"; } &synchronize; };