Skip to content

Commit

Permalink
Refactor statement.cpp to handle field assignments and throw an error…
Browse files Browse the repository at this point in the history
… for incompatible types
  • Loading branch information
riccardodebenedictis committed Jul 5, 2024
1 parent ff41369 commit e219989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/statement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ namespace riddle
else
{
pred_opt = scp.get_predicate(predicate_name.id);
if (!is_core(scp))
if (!is_core(pred_opt.value().get().get_scope()))
args.emplace("tau", ctx->get("tau")); // we inherit tau from the caller
}

Expand Down

0 comments on commit e219989

Please sign in to comment.