ascot diagnostics

A4983

Error: Variable ‘{name}’ is already declared

A method or label declares two formal arguments with the same name. IRIS refuses to compile the class or routine (ERROR #1050: Duplicate variable names in parameter list). Give each formal argument 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