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

Issue 7713 - lambda inference doesn't work on template function argument #814

Merged
merged 2 commits into from
Mar 20, 2012

Conversation

9rnsr
Copy link
Contributor

@9rnsr 9rnsr commented Mar 16, 2012

@@ -1659,9 +1659,10 @@ MATCH CastExp::implicitConvTo(Type *t)
if (p->type->ty == Tident &&
((TypeIdentifier *)p->type)->ident == tp->ident)
{ p = Parameter::getNth(tfv->parameters, u);
if (p->type->ty == Tident)
return NULL;
unsigned errors = global.startGagging();
Copy link
Member

Choose a reason for hiding this comment

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

I really hate to see more error gagging, there are many unresolved issues with it. Can't this be done more directly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, I found Type::reliesOnTident. Extending it can avoid gagging.

@9rnsr
Copy link
Contributor Author

9rnsr commented Mar 19, 2012

Avoided error gagging.

WalterBright added a commit that referenced this pull request Mar 20, 2012
Issue 7713 - lambda inference doesn't work on template function argument
@WalterBright WalterBright merged commit 8dba679 into dlang:master Mar 20, 2012
braddr pushed a commit to braddr/dmd that referenced this pull request Oct 22, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants