You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compiling asy, and then running ./asy -noautoplain -d test, gives the following errors:
access test3(T=T) as module;
^
test2.asy: 3.16: static use of dynamic variable
T t = new T;
^
test3.asy: 3.7: static use of dynamic variable
Some notes:
If the line reads T t; instead of T t = new T;, then only the first error survives (at least on the master branch).
Running with -dir ./base instead of -noautoplain does not affect the result.
Without the nesting, there is no error. I cannot say for sure the error is related to templated imports; there might be a way to duplicate this behavior using nested structs. I have not really explored this avenue since I could not think of an approach that seemed promising to me, but my intuition in that area has proven faulty before.
The text was updated successfully, but these errors were encountered:
To duplicate, have the following 3 files:
test.asy
:test2.asy
:test3.asy
:Compiling
asy
, and then running./asy -noautoplain -d test
, gives the following errors:Some notes:
T t;
instead ofT t = new T;
, then only the first error survives (at least on the master branch).-dir ./base
instead of-noautoplain
does not affect the result.The text was updated successfully, but these errors were encountered: