Files
c3c/test/test_suite/expressions/optional_and_error.c3
2025-01-08 23:17:50 +01:00

13 lines
193 B
Plaintext

module testing;
import std::io;
fn void main()
{
bool ok;
if (ok && !foo()) io::printfn("nok"); // #error: The expression may not be an optional
}
fn bool! foo()
{
return false;
}