mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
17 lines
301 B
Plaintext
17 lines
301 B
Plaintext
module exitcodes;
|
|
import std::io;
|
|
|
|
fault HadError
|
|
{
|
|
BAD_STUFF,
|
|
WORSE_STUFF,
|
|
THE_WORST_STUFF
|
|
}
|
|
|
|
fn int main(String[] args)
|
|
{
|
|
HadError err = HadError.BAD_STUFF;
|
|
SearchResult res = (SearchResult)(anyfault)HadError.BAD_STUFF; // #error: This expression is known at compile time
|
|
return 0;
|
|
}
|