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
Supplemental fix for issue 14735 - Prevent self-recursive match #3446
Conversation
The slice expression `s[]` will match to T[n] by using compile-time length deduction.
Huh? Why's that? |
Sorry it's not well documented in the spec. It's only in the changelog text: Yes, |
What a surprise! I always assumed that things like this only worked inside one expression (like VRP)... |
Ok, I see it does only work inside one expression. But on further thought, I don't like this, at least not if it requires hacks such as this one. |
Regardless of whether this is a misfeature or not, I'm going to pull this because that debate should go elsewhere. |
Auto-merge toggled on |
Supplemental fix for issue 14735 - Prevent self-recursive match
Supplemental fix for issue 14735 - Prevent self-recursive match
Supplemental fix for issue 14735 - Prevent self-recursive match
The slice expression
s[]
will match to T[n] by using compile-time length deduction.Required by: dlang/dmd#4779