![]() |
|
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 ![]() |