Files
c3c/test/test_suite/contracts/contract_copy_optret.c3
Christoffer Lerno cdabe8fd9e - Create optional with ~ instead of ?. return io::EOF?; becomes return io::EOF~.
- Deprecated use of `?` to create optional.
2026-01-20 16:10:28 +01:00

22 lines
208 B
Plaintext

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();