---- import std.stdio; void foo(bool[1]* test) { if (test[0]) test[0] = false; }
void main() { bool[1] test = false; foo(&test); } ----prints: Error: expression test[0u] of type bool[1u] does not have a boolean value
This work: ---- if ((*test)[0]) test[0] = false; ----