jorts/examples/function-overload.jt
2019-03-08 18:45:33 -03:00

15 lines
184 B
Text

import io
import integer
fn my_puts(string str) {
io.puts(str)
}
fn my_puts(int my_int) {
io.puts(integer.to_str(my_int))
}
fn main () {
my_puts(2)
my_puts("aaa")
}