COBCH1993 An AS expression cannot be used as a reference parameter

An AS expression has been used when passing parameters to a section.

In the following example, this error occurs for M1.

       method-id main static.
           declare o1 as object = "Hello"
           invoke M1(reference o1 as string) *> This line must change
           display o1
       end method.