Skip to content

Commit

Permalink
Merge pull request #100 from niyaznigmatullin/null_instanceof
Browse files Browse the repository at this point in the history
Make domain for `instanceof` of `null`
  • Loading branch information
AbdullinAM authored Dec 7, 2023
2 parents dbaf0e3 + 3765dcf commit a7aab55
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,8 @@ data object NullDomainValue : NullityAbstractDomainValue {
is TermDomainValue -> satisfiesInequality(other.nullity)
else -> unreachable { log.error("$this != $other is unexpected satisfiability check") }
}

override fun satisfiesType(type: Type): AbstractDomainValue = DomainStorage.falseDomain
}

data object NullableDomainValue : NullityAbstractDomainValue {
Expand Down

0 comments on commit a7aab55

Please sign in to comment.