Files
c3c/test/test_suite/expressions/casts/cast_failable.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

7 lines
125 B
Plaintext

faultdef FOO;
fn void test()
{
int? x = (int?)(FOO~); // #error: Casting to an optional type is not
int? y = FOO~;
}