this code:
```
void main() {
assert(assert(0, "hello"), "hello again"); // ok
assert(assert(assert(0, "hello once again"), "hello"), "hello again"); //error
}
```
produces an unexpected error: `Error: expression `assert(assert(0, "hello once again"), "hello")` of type `void` does not have a boolean value`
Since assert is supposed to be typed noreturn, this should compile.
Comment #1 by dkorpel — 2022-11-21T17:51:59Z
> Since assert is supposed to be typed noreturn
That's not true in general, only if the condition evaluates at compile time to `false`.
Comment #2 by robert.schadek — 2024-12-13T19:25:49Z