JoeStrout / miniscript

source code of both C# and C++ implementations of the MiniScript scripting language
MIT License
280 stars 64 forks source link

No errors when number and function data after keyword `in` #146

Open Withered-Flower-0422 opened 7 months ago

Withered-Flower-0422 commented 7 months ago
]for i in 42; end for
]for i in @print; end for
]for i in (null + 0); end for
]

There should be errors, like how null does:

]for i in null
Compiler Error: sequence expression expected for 'for' loop [line 1]
]

See on Discord.