-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Incremental resolution inconsistency handles propagated type of final fields #24503
Comments
Paul, what do you consider a bug - the fact that we get propagated type initially, or the fact that we lose it after incremental resolution? It seems that the last one. But AFAIK we decided that we don't propagate types for fields in the old task model. So, it should not have been set at all. |
Disabling propagated types for properties. |
Getting inconsistent results from incremental vs. non-incremental resolution concerns me most, and it looks like your CL fixes that. I suspect that not too long from now we're going to need to start doing type propagation on final instance fields (judging by the high priority assigned to issue #23001, which is the parallel issue for top level final variables). But we can address that in a separate effort. |
Note that with the support for strong mode we have all the plumbing in place. It should be fairly easy to implement this after we've moved to the new task model. (On the other hand, it becomes completely moot for folks using strong mode.) |
R=brianwilkerson@google.com, paulberry@google.com BUG= #24503 Review URL: https://codereview.chromium.org/1386033003 .
Done. |
With the new task model disabled, paste the following code into an empty file:
Then place the cursor after
x.
and request completions. Completions such aslength
andsubstring
(which come from theString
class) are shown.Now delete the
.
, retype it, and request completions again if necessary (note that most editors automatically request completions when.
is typed). Now the only completions shown are those defined onObject
, such ashashCode
andruntimeType
.It appears that incremental resolution is not reproducing the propagated type of
x
.The text was updated successfully, but these errors were encountered: