mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
14 lines
180 B
C
14 lines
180 B
C
fault MyError
|
|
{
|
|
FOO
|
|
}
|
|
|
|
fn void test()
|
|
{
|
|
int x = 0;
|
|
switch (x)
|
|
{
|
|
case MyError.FOO!: // #error: You cannot have a failable here
|
|
x = x + 1;
|
|
}
|
|
} |