Skip to content

Instantly share code, notes, and snippets.

@cbilson
Created May 23, 2010 20:44
Show Gist options
  • Save cbilson/411234 to your computer and use it in GitHub Desktop.
Save cbilson/411234 to your computer and use it in GitHub Desktop.
let ex (p : bool) =
if p then ignore()
else failwith "gusto"
let f () : unit =
ex false
(* stack trace doesn't include f's body. why? *)
f()
(* result:
System.Exception: gusto
> at <StartupCode$FSI_0025>.$FSI_0025.main@() in c:\src\personal\Library2\Library2\Script1.fsx:line 8
*)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment