Skip to content

Commit

Permalink
Make &DEPRECATED treat $vfrom inclusively
Browse files Browse the repository at this point in the history
The error message says "since blah blah", so it implies the
specified version is included. Also, making the version included
in the commit message makes it easier to specify restrictions,
especially when testing against the language version.
  • Loading branch information
zoffixznet committed Sep 27, 2017
1 parent bb0ebab commit a225e04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Deprecations.pm
Expand Up @@ -59,7 +59,7 @@ sub DEPRECATED($alternative,$from?,$removed?,:$up = 1,:$what,:$file,:$line) {
my Version $vremoved;
if $from {
$vfrom = Version.new($from);
return unless $version cmp $vfrom === More;
return if $version before $vfrom; # not deprecated yet
}
$vremoved = Version.new($removed) if $removed;

Expand Down

0 comments on commit a225e04

Please sign in to comment.