diff --git a/internal/analysis/check.go b/internal/analysis/check.go index 882df2d..f9368ca 100644 --- a/internal/analysis/check.go +++ b/internal/analysis/check.go @@ -535,6 +535,13 @@ func (res *CheckResult) checkDestination(destination parser.Destination) { } res.checkKeptOrDestination(destination.Remaining) + case *parser.DestinationOneof: + for _, clause := range destination.Clauses { + res.checkExpression(clause.Cap, TypeMonetary) + res.checkKeptOrDestination(clause.To) + } + res.checkKeptOrDestination(destination.Remaining) + case *parser.DestinationAllotment: var remainingAllotment *parser.RemainingAllotment var variableLiterals []parser.Variable