COBCH1818 匿名メソッドに使用できない

匿名メソッドで不適切な構文が検出されました。

解決方法:

コードを修正してから再コンパイルします。

例:

次の例では、RETURNING RET STRING 構文は無効であり、RETURNING RET TO STRING-ARRAY[0] にする必要があります。

       class-id a.
       method-id main static.
           declare d as type System.Func[string]
           set d to
                delegate(params string-array as string occurs any returning ret as string
                     *>set ret to string-array[0]
                end-delegate
       end method.
       end class.