diff options
Diffstat (limited to 'doc/examples/overload.sail')
| -rw-r--r-- | doc/examples/overload.sail | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/examples/overload.sail b/doc/examples/overload.sail new file mode 100644 index 00000000..b6213cdd --- /dev/null +++ b/doc/examples/overload.sail @@ -0,0 +1,10 @@ +val print_int : int -> unit + +val print_string : string -> unit + +overload print = {print_int, print_string} + +function main() : unit -> unit = { + print("Hello, World!"); + print(4) +}
\ No newline at end of file |
