Open
Description
I have implemented functions for math.py
which work when running with PYTHONPATH=src/runtime/ltypes python3 src/runtime/math.py
but give Unsupported type annotation: list
when running with ./src/bin/lpython src/runtime/math.py -o output && ./output
.
Here's the sample fsum()
function implementation.
def fsum(data: list) -> f64:
"""
Sum of the elements of `data`.
"""
sum: f64
sum = 0.0
i: i32
for i in range(len(data)):
sum += data[i]
return sum
Metadata
Metadata
Assignees
Labels
No labels