解決方法:
このメソッドをデリゲートが必要な別のメソッドにパラメーターとして渡すことが目的の場合は、次の例のようにキーワード METHOD を使用します。
例:
class-id a.
method-id main static.
invoke M2(M1) *> Error
invoke M2(method M1) *> ok
end method.
method-id M1 (s as string) static.
end method.
method-id M2 (del as type Del) static.
end method.
end class.
delegate-id Del (s as string)
end delegate.