Files
c3c/test/test_suite/errors/no_common.c3
Christoffer Lerno b31629c5e8 Removal of "or_else jump". Fixes to defer & macros/blocks, optimized failable return. @noscope macros removed. Disallow meaningless defer.
Correctly show error on return or rethrow inside of a defer. Fix copying an access expression. Removing scoped expr.
2022-03-26 20:16:36 +01:00

13 lines
147 B
C

fn int! abc()
{
return 1;
}
macro test()
{
abc()?;
}
fn void main()
{
@test() ?? 2; // #error: Cannot find a common type for 'void' and 'int'
}