Function referencing in @return? for simplified fault declarations. Check @return? eagerly #2340.

This commit is contained in:
Christoffer Lerno
2025-11-03 23:49:35 +01:00
parent d43d7100af
commit 4a25bcc5ee
10 changed files with 200 additions and 26 deletions

View File

@@ -0,0 +1,21 @@
module test;
import std;
<*
@return? test!
*>
fn void? test2()
{
return NOT_FOUND?;
}
<*
@return? io::EOF, Foo!
*>
fn void? test()
{
return NOT_FOUND?;
}
<*
@return? NOT_FOUND
*>
alias Foo = fn void();

View File

@@ -1,5 +1,5 @@
module contract_err_tests;
import std;
<*
Hello world
@param [in] a