Skip to content

Commit

Permalink
Merge pull request #622 from drgrice1/fix-parser-assignment-parsing
Browse files Browse the repository at this point in the history
Fix an issue with parserAssignment.pl introduced in #609
  • Loading branch information
pstaabp authored Jan 18, 2022
2 parents ff6c945 + 302ba3f commit 4400e4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion macros/parserAssignment.pl
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,8 @@ package parser::Assignment::Formula;
sub new {
my $self = shift; $class = ref($self) || $self;
my $f = $self->SUPER::new(@_);
bless $f, $class if $f->type eq 'Assignment';
return $f unless $f->type eq 'Assignment';
bless $f, $class;
my $rhs = $f->getTypicalValue($f)->{data}[1];
Value->Error('Assignment of strings is not allowed.') if $rhs && $rhs->type eq 'String';
return $f;
Expand Down

0 comments on commit 4400e4f

Please sign in to comment.