erg-lang / erg

A statically typed language compatible with Python
http://erg-lang.org
Apache License 2.0
2.65k stars 55 forks source link

Parameters move doesn't work properly #259

Closed mtshiba closed 1 year ago

mtshiba commented 1 year ago

Describe the bug?

...

Reproducible code

f x: Int!, y: Int = x + y
print! f(!1, 2)

Expected result

3

Actual result

thread '<unnamed>' panicked at 'variable not found: ::x(: Int!)', compiler\erg_compiler\ownercheck.rs:284:9

Additional context

No response

Erg version

0.5.13

Python version

No response

OS

No response