-
Notifications
You must be signed in to change notification settings - Fork 5
TypeInference bug in ilist.map #579
Copy link
Copy link
Closed
Labels
area: dialect IListArea: issues related to the dialect IList component.Area: issues related to the dialect IList component.category: bugCategory: this is a bug or something isn't working as expected.Category: this is a bug or something isn't working as expected.
Description
Something is going wrong with type inference on the following example:
from kirin.prelude import structural
from kirin.dialects import py, ilist
@structural(typeinfer=True, fold=False, no_raise=False)
def main(n):
def map_func(i):
return n + 1
return ilist.map(map_func, ilist.range(4))
main.print()type of the collection in ilist.map is bottom. Seems to be somewhat related to type inference of func.Lambda but I am not sure.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: dialect IListArea: issues related to the dialect IList component.Area: issues related to the dialect IList component.category: bugCategory: this is a bug or something isn't working as expected.Category: this is a bug or something isn't working as expected.