Bug fix
This commit is contained in:
parent
27fec15fcc
commit
eaacec852f
@ -23,7 +23,7 @@ end
|
|||||||
|
|
||||||
Base.decompose(x::TrackedReal) = Base.decompose(data(x))
|
Base.decompose(x::TrackedReal) = Base.decompose(data(x))
|
||||||
|
|
||||||
Base.copy(x::TrackedArray) = copy(data(x))
|
Base.copy(x::TrackedReal) = copy(data(x))
|
||||||
|
|
||||||
Base.convert(::Type{T}, x::TrackedReal{S}) where {T<:Real,S} = convert(T, data(x))
|
Base.convert(::Type{T}, x::TrackedReal{S}) where {T<:Real,S} = convert(T, data(x))
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ function promotiontest(f, A, B, C)
|
|||||||
if all(ndims.((A,B,C)) .≤ 2) && f ∈ [hcat, vcat]
|
if all(ndims.((A,B,C)) .≤ 2) && f ∈ [hcat, vcat]
|
||||||
r3 = f(A, B, param(C))
|
r3 = f(A, B, param(C))
|
||||||
else
|
else
|
||||||
@test_broken f(A, B, param(C)) # until julia#20815 is resolved
|
@test_throws MethodError f(A, B, param(C)) # until julia#20815 is resolved
|
||||||
r3 = r2
|
r3 = r2
|
||||||
end
|
end
|
||||||
r4 = f(param(A), param(B), param(C))
|
r4 = f(param(A), param(B), param(C))
|
||||||
|
Loading…
Reference in New Issue
Block a user