-
Notifications
You must be signed in to change notification settings - Fork 424
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
Resolution errors for forwarded virtual methods on generic classes #7786
Comments
This issue is coming from the combination of forwarding + inheritance. In this case, This might be surprising but in this event forwarding is functioning as designed. |
According to #7585, it looks like I ran into this while working on some array view bulk-transfer stuff. |
I think we should close the issue, because everything is working the way I'd expect. @benharsh - if you want to argue for changing the disambiguation rules you are welcome to do so. |
I had a short discussion with @benharsh and answered a question - based upon the above comment, it seemed that it should compile but halt at runtime. The reason it doesn't is this:
|
Summary of Problem
A forwarded virtual method on a generic class can confuse the compiler, which may attempt to select the wrong method to forward/resolve.
Associated Future Test(s):
test/classes/forwarding/forwardGenericVirtual.chpl
The text was updated successfully, but these errors were encountered: