Skip to content

Instantly share code, notes, and snippets.

@marler8997
Created February 13, 2021 05:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marler8997/1121440cab0a20cf96f05561b6fae288 to your computer and use it in GitHub Desktop.
Save marler8997/1121440cab0a20cf96f05561b6fae288 to your computer and use it in GitHub Desktop.
const Bad = error { Bad };
fn foo() Bad!Bad {
return error.Bad;
}
pub fn main() !void {
@import("std").debug.print("{}\n", .{try foo()});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment