fix(builder): reject second when in same profile #39
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-30-sequential-when"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
DSL.Builder.whennow returnsLeft DuplicateConditionifssConditionis already set, instead of silently discarding the first condition and gating all accumulated actions under the second oneDuplicateConditionconstructor toIR.Domain.Error(IR commit 017a619)DSL.BuilderSpeccovering the exact scenario from the issueCloses #30
Test plan
cabal test— 87/87 passprofile "p" $ do { when condA ...; when condB ... }returnsLeft DuplicateCondition