buzz icon indicating copy to clipboard operation
buzz copied to clipboard

`catch void` to ignore error when type is void

Open giann opened this issue 3 years ago • 0 comments

fun willFail() > void !> str {
    throw "fail";
}

fun main([str] args) > void {
    willFail() catch void;
}

giann avatar Sep 15 '22 09:09 giann