- When encountering a foreach over a ZString* it would not properly emit a compilation error, but hit an assert #2573.

This commit is contained in:
Christoffer Lerno
2025-11-11 12:36:02 +01:00
parent eccc6700dc
commit 6360ddbc77
3 changed files with 13 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
module get_environ;
import std;
fn void main(String[] args)
{
ZString* environ_arr = std::os::posix::environ;
foreach (idx, ZString &envvar : environ_arr) // #error: It's not possible to enumerate an expression of type 'ZString*'
{}
}