This was broken in commit
2990415a4519bc3988d7224ae15100c3e9e901ee
where the inlined constants were deparsed also _inside_ the subroutine
that defined them: that is, before they were available to the parser
return ('undef', '1', $self->maybe_parens("!1", $cx, 21))[$$sv-1];
} elsif (class($sv) eq "NULL") {
return 'undef';
- } elsif (my $const = $self->{'inlined_constants'}->{ 0 + $sv->object_2svref }) {
+ } elsif ($cx and my $const = $self->{'inlined_constants'}->{ 0 + $sv->object_2svref }) {
return $const;
}
# convert a version object into the "v1.2.3" string in its V magic