Skip to content

Commit

Permalink
Make a VNV doctest more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
mhauru committed Oct 3, 2024
1 parent 567c4bc commit 172d128
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/varnamedvector.jl
Original file line number Diff line number Diff line change
Expand Up @@ -799,8 +799,6 @@ julia> y_trans(x) = reshape(x, (2, 2));
julia> setindex_internal!(vnv, collect(1:4), @varname(y), y_trans)
ERROR: MethodError: Cannot `convert` an object of type
VarName{y,typeof(identity)} to an object of type
VarName{x,typeof(identity)}
[...]
julia> vnv_loose = DynamicPPL.loosen_types!!(vnv, typeof(@varname(y)), typeof(y_trans));
Expand Down

0 comments on commit 172d128

Please sign in to comment.