Closed charlesstaats closed 5 months ago
Example code:
structfunction.asy:
struct a { } a a() { return new a; } a b() = a;
structfunctioncaller.asy:
from structfunction access a; from structfunction access b; a x = new a; // works a x = b(); // works a x = a(); // doesn't work (but should)
Running asy structfunctioncaller gives the following:
asy structfunctioncaller
a x = a(); // doesn't work (but should) ^ structfunctioncaller.asy: 6.7: no matching variable 'a'
Thanks, Charles. This is fixed in reversion 8652763972c48b7675d7a8707499311c1d1a5030.
Example code:
structfunction.asy:
structfunctioncaller.asy:
Running
asy structfunctioncaller
gives the following: