Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong handling of type parameter in tohrep of VPolygon #1070

Closed
mforets opened this issue Jan 25, 2019 · 0 comments
Closed

Wrong handling of type parameter in tohrep of VPolygon #1070

mforets opened this issue Jan 25, 2019 · 0 comments
Assignees
Labels
bug 🐛 Something isn't working

Comments

@mforets
Copy link
Member

mforets commented Jan 25, 2019

julia> p = rand(HPolygon);

julia> linear_map(rand(2, 2), p)
ERROR: TypeError: in Type{...} expression, expected UnionAll, got Type{HPolygon{Float64}}
Stacktrace:

 [1] tohrep(::VPolygon{Float64}, ::Type{HPolygon{Float64}}) at /Users/forets/.julia/dev/LazySets/src/VPolygon.jl:156
 [2] convert(::Type{HPolygon{Float64}}, ::VPolygon{Float64}) at /Users/forets/.julia/dev/LazySets/src/convert.jl:50
 [3] #linear_map#17(::Type{HPolygon{Float64}}, ::Function, ::Array{Float64,2}, ::HPolygon{Float64}) at /Users/forets/.julia/dev/LazySets/src/AbstractPolygon.
jl:209
 [4] linear_map(::Array{Float64,2}, ::HPolygon{Float64}) at /Users/forets/.julia/dev/LazySets/src/AbstractPolygon.jl:207
 [5] top-level scope at none:0
@mforets mforets changed the title BoundError in concrete linear map of HPolygon TypeError in concrete linear map of HPolygon Jan 25, 2019
@schillic schillic self-assigned this Jan 25, 2019
@schillic schillic added the bug 🐛 Something isn't working label Jan 25, 2019
@schillic schillic changed the title TypeError in concrete linear map of HPolygon Wrong handling of type parameter in tohrep of VPolygon Jan 25, 2019
schillic added a commit that referenced this issue Jan 26, 2019
#1070 - Wrong handling of type parameter in tohrep of VPolygon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants