mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-02 21:44:34 +00:00
8 lines
128 B
Python
8 lines
128 B
Python
p! *x: Int = print! x
|
|
p! 1, 2, "a" # ERR
|
|
|
|
first *x = x[0]
|
|
assert first(1, 2, 3) == "b" # ERR
|
|
|
|
f = (*_: Int) -> None
|
|
f "a", 1, 2
|