erg/tests/infer_class.er
2022-10-06 00:27:43 +09:00

14 lines
177 B
Python

_abs x =
x.abs() # currently this method only implemented for integers
assert _abs(-1) == 1
#[
push! a, elem =
a.push!(elem)
a
a = ![]
b = push! a, 1
print! b
]#