Skip to content

Commit 402914f

Browse files
committed
bugfix
1 parent febf545 commit 402914f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/combinators/affine.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Base.propertynames(d::Affine{N}) where {N} = N ∪ (:parent,)
3232
if s === :parent
3333
return getfield(d, :parent)
3434
else
35-
return getfield(getfield(d, :f), s)
35+
return getproperty(getfield(d, :f), s)
3636
end
3737
end
3838

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ end
116116

117117
@test Affine((μ=3=2))(unif) == Affine(f, unif)
118118
@test Affine((μ=3=2))(unif) == Affine(g, unif)
119-
@test_broken logdensity(Affine(f, Affine(inv(f), unif)), 0.5) == 1
119+
@test density(Affine(f, Affine(inv(f), unif)), 0.5) == 1
120120
end
121121

122122
# @testset "For" begin

0 commit comments

Comments
 (0)