Skip to content

Commit

Permalink
align abort with panic (#595)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobzhang authored Jun 24, 2024
1 parent a6c91d6 commit 372aa9c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion builtin/intrinsics.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ pub fn physical_equal[T](a : T, b : T) -> Bool = "%refeq"

pub fn print_string(s : String) -> Unit = "%print_string"

pub fn abort[T](msg : String) -> T = "%abort"
pub fn abort[T](msg : String) -> T {
ignore(msg)
panic()
}

pub fn panic[T]() -> T = "%panic"

Expand Down

0 comments on commit 372aa9c

Please sign in to comment.