COBCH1756 The chained constructor must not include references to instance or method-local data

The program contains a chained constructor reference that attempts to pass local variables or instance fields as parameters. This is not allowed.

Resolution:

Modify the code to eliminate references from the chained contructor to instance or method-local data; then recompile.

Example:

In the following example, the S1 field is declared within the same method as is attempting to pass it as a parameter.

       class-id A.
       01 _name string.
       01 _otherName string.
       method-id new(s as string).
           set _name to s
       end method.
       method-id new
       01 s1 string.
           invoke self::new(s1)
       end method.
       end class.