Skip to content

Commit

Permalink
Don't force the result of adding two sets to be a Union (in particula…
Browse files Browse the repository at this point in the history
…r, let it be a Set). Resolves issue openwebwork#280.
  • Loading branch information
dpvc authored and Alex-Jordan committed Nov 14, 2017
1 parent a76644d commit 2253e0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Value/Set.pm
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ sub promote {
#
sub add {
my ($self,$l,$r) = Value::checkOpOrderWithPromote(@_);
$self->Package("Union")->new($l,$r);
return Value::Union::form($self->context,$l,$r);
}
sub dot {my $self = shift; $self->add(@_)}

Expand Down

0 comments on commit 2253e0a

Please sign in to comment.