Skip to content

Commit 4400e4f

Browse files
authored
Merge pull request #622 from drgrice1/fix-parser-assignment-parsing
Fix an issue with parserAssignment.pl introduced in #609
2 parents ff6c945 + 302ba3f commit 4400e4f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

macros/parserAssignment.pl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,8 @@ package parser::Assignment::Formula;
347347
sub new {
348348
my $self = shift; $class = ref($self) || $self;
349349
my $f = $self->SUPER::new(@_);
350-
bless $f, $class if $f->type eq 'Assignment';
350+
return $f unless $f->type eq 'Assignment';
351+
bless $f, $class;
351352
my $rhs = $f->getTypicalValue($f)->{data}[1];
352353
Value->Error('Assignment of strings is not allowed.') if $rhs && $rhs->type eq 'String';
353354
return $f;

0 commit comments

Comments
 (0)