mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
17 lines
645 B
Plaintext
17 lines
645 B
Plaintext
|
|
func void test()
|
|
{
|
|
test()!!; // #error: No failable to rethrow before '!!' in the expression, please remove '!!'
|
|
int i = 0;
|
|
if (i!!) return; // #error: No failable to rethrow before '!!' in the expression, please remove '!!'
|
|
int! j = 0;
|
|
if (j!!) return; // #error: This expression implicitly returns with a failable result, but the function
|
|
if ((j!!)!!) return; // #error: This expression implicitly returns with a failable result, but the function
|
|
}
|
|
|
|
func void! test2()
|
|
{
|
|
int! j = 0;
|
|
if (j!!) return;
|
|
if ((j!!)!!) return; // #error: No failable to rethrow before '!!' in the expression, please remove '!!'
|
|
} |