Skip to main content

RedeclaredVariable

rascal-0.40.17

Synopsis

A variable with the same name has been declared in the same scope.

Description

Remedy: rename one of the variables.

Examples

rascal>int n = 3;
int: 3
rascal>int n = 4;
|prompt:///|(4,5,<1,4>,<1,9>): Redeclared variable: n
Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/RedeclaredVariable|
ok