We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ff6c945 + 302ba3f commit 4400e4fCopy full SHA for 4400e4f
macros/parserAssignment.pl
@@ -347,7 +347,8 @@ package parser::Assignment::Formula;
347
sub new {
348
my $self = shift; $class = ref($self) || $self;
349
my $f = $self->SUPER::new(@_);
350
- bless $f, $class if $f->type eq 'Assignment';
+ return $f unless $f->type eq 'Assignment';
351
+ bless $f, $class;
352
my $rhs = $f->getTypicalValue($f)->{data}[1];
353
Value->Error('Assignment of strings is not allowed.') if $rhs && $rhs->type eq 'String';
354
return $f;
0 commit comments