mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
14 lines
165 B
C
14 lines
165 B
C
fault MyError
|
|
{
|
|
FOO
|
|
}
|
|
|
|
fn void test()
|
|
{
|
|
int x = 0;
|
|
switch (x)
|
|
{
|
|
case MyError.FOO? : // #error: 'int!' to 'int'
|
|
x = x + 1;
|
|
}
|
|
} |