From 172d128d8f4b33c0bf49260ec6facee3134dfce4 Mon Sep 17 00:00:00 2001 From: Markus Hauru Date: Thu, 3 Oct 2024 14:26:21 +0100 Subject: [PATCH] Make a VNV doctest more robust --- src/varnamedvector.jl | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/varnamedvector.jl b/src/varnamedvector.jl index cc3c4ef51..330151034 100644 --- a/src/varnamedvector.jl +++ b/src/varnamedvector.jl @@ -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));