package DX::Step::InvokeNextPredicate;

use DX::Class;

with 'DX::Role::Step';

has proposition => (is => 'ro', required => 1);

sub apply_to {
  my ($self, $ss) = @_;
  my $hyp = $ss->current_hypothesis;
  return (undef, $self->proposition->resolve_for($hyp->scope));
}

1;
