vectorgraphics / asymptote

2D & 3D TeX-Aware Vector Graphics Language
https://asymptote.sourceforge.io/
GNU General Public License v3.0
533 stars 89 forks source link

void array declaration generates error twice #419

Closed charlesstaats closed 5 months ago

charlesstaats commented 5 months ago

If you run the following asy file

void[] a;

you get the following error output:

void[] a;
    ^
workspace_1.asy: 1.5: cannot declare array of type void
void[] a;
    ^
workspace_1.asy: 1.5: cannot declare array of type void

In other words, the same error gets output twice. The expected behavior is that it should only be output once. (I consider this a bug, but an extremely minor one.)