mirror of
https://github.com/egormanga/Slang.git
synced 2025-03-01 18:09:30 +03:00
11 lines
137 B
Plaintext
11 lines
137 B
Plaintext
#| Slang `overload' test. |#
|
|
|
|
int f(int x) = x+1
|
|
int f(int x, int y) = x+y+1
|
|
|
|
main {
|
|
stdio.println(f(1))
|
|
stdio.println(f(1, 2))
|
|
f()
|
|
}
|