ecmarkup
ecmarkup copied to clipboard
Completion record linting doesn't work quite right with parentheses
In Temporal I have an operation RoundDuration which returns "either a normal completion containing a Record with fields [[DurationRecord]] (a Duration Record) and [[Total]] (a mathematical value), or a throw completion". I'm trying to access one of the fields on the returned Record without making an intermediate binding:
- Let result be (? RoundDuration(arguments)).[[DurationRecord]].
This results in the error "RoundDuration returns a Completion Record, but is not consumed as if it does" from ecmarkup.
Changing it to this makes the error go away:
- Let roundRecord be ? RoundDuration(arguments).
- Set result to roundRecord.[[DurationRecord]].