Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unifying undefined first class function types issue. #5626

Merged
merged 2 commits into from Apr 30, 2020

Conversation

pearu
Copy link
Contributor

@pearu pearu commented Apr 24, 2020

Tackles #5615 .

stuartarchibald added a commit to stuartarchibald/numba that referenced this pull request Apr 28, 2020
As title. For context see comment on numba#5626.
stuartarchibald added a commit to stuartarchibald/numba that referenced this pull request Apr 28, 2020
As title. For context see comment on numba#5626.
@pearu pearu changed the title Unify undefined first class function types [WIP] Fix unifying undefined first class function types issue. Apr 28, 2020
@@ -532,8 +532,6 @@ def unified_function_type(numba_types, require_precise=True):
if isinstance(t, types.UndefinedFunctionType):
if undefined_function is None:
undefined_function = t
else:
assert undefined_function == t
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm trying to understand this patch. I see that when this condition is reached, this function will return None. Couldn't it return None at this point?

@stuartarchibald stuartarchibald mentioned this pull request Apr 30, 2020
40 tasks
@sklam sklam merged commit 23a2734 into numba:master Apr 30, 2020
@stuartarchibald stuartarchibald added 5 - Ready to merge Review and testing done, is ready to merge and removed 4 - Waiting on author Waiting for author to respond to review labels May 4, 2020
@stuartarchibald
Copy link
Contributor

Indirectly merged by #5658 thanks for the patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5 - Ready to merge Review and testing done, is ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants