Skip to content

Commit 72e23c8

Browse files
authored
Bypass identical construction on TracedRArray (#165)
1 parent deefd18 commit 72e23c8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/TracedRArray.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ mutable struct TracedRArray{T,N} <: RArray{T,N}
1717
end
1818
end
1919

20+
TracedRArray{T,N}(x::TracedRArray{T,N}) where {T,N} = x
21+
2022
const WrappedTracedRArray{T,N} = WrappedArray{T,N,TracedRArray,TracedRArray{T,N}}
2123
const AnyTracedRArray{T,N} = Union{TracedRArray{T,N},WrappedTracedRArray{T,N}}
2224
const AnyTracedRScalar{T} = AnyTracedRArray{T,0}

0 commit comments

Comments
 (0)