File tree 3 files changed +13
-1
lines changed
3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1
1
name = " DynamicPolynomials"
2
2
uuid = " 7c1d4256-1411-5781-91ec-d7bc3513ac07"
3
3
repo = " https://github.com/JuliaAlgebra/DynamicPolynomials.jl.git"
4
- version = " 0.6.1 "
4
+ version = " 0.6.2 "
5
5
6
6
[deps ]
7
7
Future = " 9fa8497b-333b-5362-9e8d-4d0656e87820"
Original file line number Diff line number Diff line change
1
+ function MP. promote_rule_constant (
2
+ :: Type{Any} ,
3
+ :: Type{<:DMonomialLike{V,M}} ,
4
+ ) where {V,M}
5
+ return Any
6
+ end
1
7
function MP. promote_rule_constant (
2
8
:: Type{T} ,
3
9
:: Type{<:DMonomialLike{V,M}} ,
Original file line number Diff line number Diff line change @@ -82,4 +82,10 @@ import DynamicPolynomials
82
82
end
83
83
end
84
84
85
+ @testset " Issue #166: promote_operation with Any" begin
86
+ DynamicPolynomials. @polyvar x
87
+ V = typeof (x)
88
+ @test promote_type (V, Any) == Any
89
+ end
90
+
85
91
include (" mvp.jl" )
You can’t perform that action at this time.
0 commit comments