Slang/tests/overload.sl

5 lines
74 B
Plaintext

int f(int x) = x+1
int f(int x, int y) = x+y+1
print(f(1))
print(f(1, 2))