Change unreachable code to error. Remove unreachable where the compiler now can detect reachability.

This commit is contained in:
Christoffer Lerno
2023-07-25 23:31:05 +02:00
parent 242006d05d
commit 3929e2057d
3 changed files with 1 additions and 3 deletions

View File

@@ -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
}