-
Notifications
You must be signed in to change notification settings - Fork 355
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
Infer type of var
variable from right-hand-side of assignment
#4593
Comments
I added a simplified test case as |
var
variable from right-hand-side of assignment
The var feature JEP286 was released in Java 10, which was released in 2018. |
@spacether I believe this was fixed by #5770, which was included in v3.35.0. There have been further fixes since then, so I suggest you give things a try with the latest Checker Framework release. I'm going to go ahead and close this issue (sorry we missed closing it before), but if you notice a problem with |
Upgrading fixed it, thanks! |
fails to compile with 2 errors
but this code has no errors
the only difference is that I'm not using
var
(I believe var uses left hand side inference as opposed to this being right hand side, but I may have them inverted)related to #4587 (comment) but that's a request for better documentation, this is for an actual compiler improvement.
The text was updated successfully, but these errors were encountered: