jorts/examples/function-overload.jt

16 lines
184 B
Text
Raw Normal View History

2019-03-08 21:30:30 +00:00
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")
}