mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Change unreachable code to error. Remove unreachable where the compiler now can detect reachability.
This commit is contained in:
@@ -35,7 +35,7 @@ macro String! getcwd(Allocator* using = mem::heap())
|
||||
return res.copy(using);
|
||||
|
||||
$default:
|
||||
unreachable("'getcwd' not available");
|
||||
return IoError.UNSUPPORTED_OPERATION?;
|
||||
$endswitch
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user