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:
@@ -34,7 +34,7 @@ fn void scanner()
|
||||
if (catch err = res)
|
||||
{
|
||||
if (err == NOT_FOUND) break;
|
||||
return err?!!;
|
||||
return err~!!;
|
||||
}
|
||||
String str = (String)res;
|
||||
results.push(str.tconcat(""));
|
||||
|
||||
Reference in New Issue
Block a user