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
whentrue:
# proc main = # dittotemplatemain=block:
type A =enum a0, a1, a2
for ai in A:
echo (ai,)
block:
type A =enum b0, b1, b2, b3
for ai in A:
echo (ai,)
static: main() # okmain() # bug
Example
Current Output
vm:
(a0,)
(a1,)
(a2,)
(b0,)
(b1,)
(b2,)
(b3,)
rt:
(a0,)
(a1,)
(a2,)
(a0,)
(a1,)
(a2,)
(3 (invalid data!),)
Expected Output
rt should be like vm:
(a0,)
(a1,)
(a2,)
(b0,)
(b1,)
(b2,)
(b3,)
Additional Information
Note that it works in vm or in js but not in c backend
EDIT: seems very similar to #15526
(and also to #5170 but that was fixed)
The text was updated successfully, but these errors were encountered: