mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
- Create optional with ~ instead of ?. return io::EOF?; becomes return io::EOF~.
- Deprecated use of `?` to create optional.
This commit is contained in:
@@ -4,10 +4,10 @@ faultdef ABC;
|
||||
|
||||
fn void test()
|
||||
{
|
||||
int x = ABC? ?? 123;
|
||||
int x = ABC~ ?? 123;
|
||||
}
|
||||
|
||||
fn void test2()
|
||||
{
|
||||
int? y = ABC? ?? ABC?;
|
||||
int? y = ABC~ ?? ABC~;
|
||||
}
|
||||
Reference in New Issue
Block a user