In the following example, you must remove the set del to delegate end-delegate code so that the first delegate declaration doesn't include a nested anonymous method.
class-id MyClass. method-id main static. 01 del type MyDelegate. set del to delegate set del to delegate end-delegate *> code cannot include another anon method end-delegate goback. end method. end class. delegate-id MyDelegate. end delegate.