ascot diagnostics

A4983

Error: Variable ‘{name}’ is already declared

A method’s or label’s formal parameter list declares the same name twice, so one parameter would shadow the other. IRIS refuses to compile it: #1050 Duplicate variable names in parameter list. Give each parameter its own name.

IRIS rejects the example.

Class Demo.RedeclareVariable
{

ClassMethod Area(width As %Integer, width As %Integer) As %Integer //! A4983
{
    Quit width * width
}

}

All diagnostics