Navigation
Synopsis A type with the same name has been declared before.
Description Some declarations introduce new type names. Most important are an Rascal:AlgebraicDataType and Rascal:Alias This error signals that the same type name is used for incompatible purposes.

Remedy: rename one of the type names.
Examples
rascal>data D = d(int x);
ok
rascal>alias D = str;
|stdin:///|(0,14,<1,0>,<1,14>): Illegal re-declaration of type: D
rascal>alias D = int;
ok
rascal>alias D = str;
|stdin:///|(0,14,<1,0>,<1,14>): Illegal re-declaration of type: D
Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.