A REFERENT written to a STRING SINK coroutine must come from an inner NESTED-REFERENTS scope.

#6141   Run-time catchable error

A REFERENT written to a STRING SINK coroutine must come from an inner NESTED-REFERENTS scope.

Explanation

Every coroutine in OmniMark is scoped, and has to finish execution by the end of its scope. Every referent written into a string sink coroutine therefore has to be resolved before the end of the coroutine scope, otherwise the coroutine execution would be blocked. OmniMark enforces this restriction by requiring the using nested referents scope around every referent written into the string sink coroutine.