erg/tests/should_ok/infer_class.er
Shunsuke Shibayama 111a9f5615 Fix #247
2022-11-27 20:24:11 +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
]#