-
Notifications
You must be signed in to change notification settings - Fork 350
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
Polymorphic qualifier substitution in member references #2931
Comments
Here's another example:
|
@smillst I think s2 and s5 have a little problem: if the assignment l-value (
(I didn't found |
While working on #2876 I've noticed that polymorphic qualifier substitution does not seem to work for member references.
Take:
Run something like:
./checker/bin-devel/javac -cp framework/build/classes/java/test -processor org.checkerframework.common.subtyping.SubtypingChecker -Aquals=testlib.util.Encrypted,testlib.util.PolyEncrypted,org.checkerframework.common.subtyping.qual.Unqualified PolyMemberRef.java
And you'll get an error:
The receiver used in the member reference should be used to resolve the polymorphic qualifier.
The text was updated successfully, but these errors were encountered: