Skip to content

Commit 3e6f993

Browse files
torfjeldeyebai
andcommitted
Fix for subsumes method ambiguity (#71)
What the title says. Co-authored-by: Hong Ge <[email protected]>
1 parent 5beb40f commit 3e6f993

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ uuid = "7a57a42e-76ec-4ea3-a279-07e840d6d9cf"
33
keywords = ["probablistic programming"]
44
license = "MIT"
55
desc = "Common interfaces for probabilistic programming"
6-
version = "0.5.2"
6+
version = "0.5.3"
77

88
[deps]
99
AbstractMCMC = "80f14c24-f653-4e6a-9b94-39d6b0f70001"

src/varname.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ end
274274
# `PropertyLens{:a}` and `PropertyLens{:b}` we immediately know that they do not subsume
275275
# each other since at the same level/depth they access different properties.
276276
# E.g. `x`, `x[1]`, i.e. `u` is always subsumed by `t`
277+
subsumes(::IdentityLens, ::IdentityLens) = true # disambiguation
277278
subsumes(t::IdentityLens, u::Lens) = true
278279
subsumes(t::Lens, u::IdentityLens) = false
279280

0 commit comments

Comments
 (0)