Skip to content

Regression in generator args to result #1405

@croyzor

Description

@croyzor

Seems to be due to this commit.

Minimal example that fails:

from guppylang import guppy
from guppylang.std.builtins import array

@guppy
def main() -> None:
    result("fs", array(i * 0.2 for i in range(1)))

main.compile()

gives

guppylang_internals.error.InternalGuppyError: Invalid iterator assign statement

Interestingly, the result is different if the generator element type is int instead of float

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions