change unreachable{} to @unreachable()
instead of a container init expression, it's a builtin function call.
This commit is contained in:
@@ -9,7 +9,7 @@ pub error InvalidDebugInfo;
|
||||
pub error UnsupportedDebugInfo;
|
||||
|
||||
pub fn assert(b: bool) {
|
||||
if (!b) unreachable{}
|
||||
if (!b) @unreachable()
|
||||
}
|
||||
|
||||
pub fn printStackTrace() -> %void {
|
||||
|
||||
Reference in New Issue
Block a user