Skip to content

Commit

Permalink
More explicit prerelease versions
Browse files Browse the repository at this point in the history
  • Loading branch information
joehuchette committed Mar 9, 2017
1 parent aac0106 commit 6df4ae4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/macros.jl
Expand Up @@ -60,7 +60,7 @@ macro polyvariable(args...)
end

# separate out keyword arguments
if VERSION < v"0.6-"
if VERSION < v"0.6.0-dev.1934"
kwargs = filter(ex-> isexpr(ex,:kw), extra)
extra = filter(ex->!isexpr(ex,:kw), extra)
else
Expand Down Expand Up @@ -170,7 +170,7 @@ macro polyconstraint(m, x, args...)
domainineqs = []
hasdomain = false
for arg in args
if ((VERSION < v"0.6-") && !isexpr(arg, :kw)) || (VERSION >= v"0.6-" && !isexpr(arg, :(=)))
if ((VERSION < v"0.6.0-dev.1934") && !isexpr(arg, :kw)) || (VERSION >= v"0.6.0-dev.1934" && !isexpr(arg, :(=)))
error("in @polyconstraint: Unrecognized extra argument $(string(arg))")
end
if arg.args[1] == :domain
Expand Down

0 comments on commit 6df4ae4

Please sign in to comment.