vectorgraphics / asymptote

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

Array variable added with `var` does not trigger creation of array ops #466

Open charlesstaats opened 1 month ago

charlesstaats commented 1 month ago

Example:

struct A {}
var a = new A[];
alias(a, null);

gives an error, whereas

struct A {}
A[] a = new A[];
alias(a, null);

does not give an error.

Expected behavior: var a = new A[]; should be syntactic sugar for A[] a = new A[];.