You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This pull request corrects the type of both implicit and explicit `this` references by correctly computing the enclosing type of `this`.
This pull request fixes two kinds of bugs:
1. The type of `Outer.this` when used in an inner class. (Issues #352, #2208, and #3561.)
2. For the Initialization Checker, the type of `Outer.this` when used in an anonymous class declared in a constructor. (Issues #354, part of #904, and #3408)
#409 (and other duplicate issues) is a related bug in the Initialization Checker, but isn't fixed by this PR.
Closes#352, closes#354, closes#2208, closes#3266, closes#3408 and closes#3561.
Consider the following test case:
The expressions
this
andThisLiteralQualified.this
should be treated identically.However, the Nullness Checker issues a warning for the latter but not for the former:
The text was updated successfully, but these errors were encountered: