rascal icon indicating copy to clipboard operation
rascal copied to clipboard

constructors with empty field names break

Open jurgenvinju opened this issue 1 year ago • 0 comments

Describe the bug

rascal>data C = c();
ok
rascal>data B = and(B,B) | or(C, C) | d();
|prompt:///|(20,8,<1,20>,<1,28>): The field name arg1 is illegally used for both C and B in type B
Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/RedeclaredField|
ok

breaks in different kinds of ways. first warnings are printed and then constructor calls don't work

rascal>and(d(),d())
|prompt:///|(4,1,<1,4>,<1,5>): Undeclared variable: d
Advice: |https://www.rascal-mpl.org/docs/Rascal/Errors/CompileTimeErrors/UndeclaredVariable|
ok

jurgenvinju avatar Oct 14 '24 19:10 jurgenvinju