Closed advikkabra closed 5 months ago
Not sure what is going on, but somehow the CI shows an error:
semantic error: Variable 'x' not declared
--> /home/runner/work/lpython/lpython/src/bin/../runtime/lpython_builtin.py:348:16
|
348 | return c64(x) + c64(0)*1j
| ^
I am not sure what is going on either, as there are no changes in lpython_builtin.py
which should cause an error there. I will take a look again.
I tried building and running the tests locally, but I could not replicate the issue. I am using Ubuntu 22.04, so I am unsure why the CI is failing.
@interface
@overload
def complex(x: f64) -> c64:
return c64(x) + c64(0)*1j
This is the function where there is an error. x is declared, so I do not know why there is a bug.
@certik Please take a look at this when you can, I am not sure how to fix this issue.
istitle
andisalpha
were implemented only for variables and not constant strings, so I added implementations and tests.test_str_attributes
along with all the other string methods.istitle
istitle
andisalpha
logic inpython_ast_to_asr.cpp
to follow the otheris
methods.