Skip to content

Conversation

schillic
Copy link
Member

@schillic schillic commented Jan 4, 2025

Also fix an error message.

@schillic schillic marked this pull request as ready for review January 4, 2025 18:33
@@ -80,7 +80,7 @@ for T in subtypes(AbstractHPolygon, true)
@assert dim(X) == 2 "set must be two-dimensional for conversion, but it " *
"has dimension $(dim(X))"
if check_boundedness && !isbounded(X)
throw(ArgumentError("expected a bounded set for conversion to `$T`"))
throw(ArgumentError("expected a bounded set for conversion to `$($T)`"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this double $ needed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the outer $ is string interpolation and the inner $ is needed inside the @eval block.

@schillic schillic merged commit 4d56d45 into master Jul 12, 2025
7 checks passed
@schillic schillic deleted the schillic/mixed_constraints branch July 12, 2025 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants