Skip to content

Commit ebe4093

Browse files
committed
Re-add but deprecate VarInfo(::VarInfo, ::AbstractVector)
1 parent 2be1bbb commit ebe4093

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/varinfo.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ const TypedVarInfo = VarInfo{<:NamedTuple}
100100
const VarInfoOrThreadSafeVarInfo{Tmeta} = Union{
101101
VarInfo{Tmeta},ThreadSafeVarInfo{<:VarInfo{Tmeta}}
102102
}
103+
# TODO: Remove this
104+
@deprecate VarInfo(vi::VarInfo, x::AbstractVector) unflatten(vi, x)
103105

104106
# NOTE: This is kind of weird, but it effectively preserves the "old"
105107
# behavior where we're allowed to call `link!` on the same `VarInfo`

0 commit comments

Comments
 (0)