-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
when a() and b()
should short-circuit semcheck
#13502
Comments
when declared(Foo) and T is Foo:
fails: const bool should short-circuit evaluationwhen a() and b()
should short-circuit evaluation
what you want is short circuit semantic checking not short circuit evaluation. The later one already happens. And btw -1 for the feature request. |
when a() and b()
should short-circuit evaluationwhen a() and b()
should short-circuit semcheck
This is a bug, not a feature request. In fact, it's a duplicate of some other bug report. |
I take it back, I misunderstood this problem. This is not a bug, the sem'checking for |
when declared(Foo) and T is Foo:
fails but there's no reason to:and
should short-circuit semcheck of 2nd arg when 1st arg is falseExample
Current Output
Expected Output
works.
in particular, this is useful for eg in generic code in include files etc where you need to specialize for some types, but these may not be present
workaround
Additional Information
The text was updated successfully, but these errors were encountered: