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

invoke should raise MethodError for ambiguous cases #23603

Merged
merged 1 commit into from
Sep 7, 2017
Merged

Conversation

vtjnash
Copy link
Sponsor Member

@vtjnash vtjnash commented Sep 6, 2017

fix #18095
fix #22988 (by improving error message)

@ararslan ararslan added the domain:error handling Handling of exceptions by Julia or the user label Sep 6, 2017
@@ -1552,7 +1552,7 @@ jl_method_instance_t *jl_method_lookup_by_type(jl_methtable_t *mt, jl_tupletype_
JL_UNLOCK(&mt->writelock);
return linfo;
}
if (jl_is_leaf_type((jl_value_t*)types))
if (jl_is_leaf_type((jl_value_t*)types)) // FIXME: this is the wrong predicate
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

Concerning... could you elaborate on why it's the wrong predicate, why you can't use the right predicate and in what direction this would need to change in order to be correct?

Copy link
Sponsor Member Author

Choose a reason for hiding this comment

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

@JeffBezanson JeffBezanson merged commit f569169 into master Sep 7, 2017
@JeffBezanson JeffBezanson deleted the jn/18095 branch September 7, 2017 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:error handling Handling of exceptions by Julia or the user
Projects
None yet
4 participants