We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41c4fce commit 6251b8eCopy full SHA for 6251b8e
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -1691,7 +1691,7 @@ object Types {
1691
* attempt in `denot` does not yield a denotation.
1692
*/
1693
private def denotAt(lastd: Denotation, now: Period)(implicit ctx: Context): Denotation = {
1694
- if (lastd != null && (lastd.validFor contains now) && checkedPeriod != Nowhere) {
+ if (checkedPeriod != Nowhere && lastd.validFor.contains(now)) {
1695
checkedPeriod = now
1696
lastd
1697
}
0 commit comments