This commit is contained in:
JohnnyChen 2018-10-09 03:40:02 +08:00
parent 27fec15fcc
commit eaacec852f
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ end
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))

View File

@ -40,7 +40,7 @@ function promotiontest(f, A, B, C)
if all(ndims.((A,B,C)) .≤ 2) && f [hcat, vcat]
r3 = f(A, B, param(C))
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
end
r4 = f(param(A), param(B), param(C))