Skip to content

Commit

Permalink
Another cast
Browse files Browse the repository at this point in the history
  • Loading branch information
Baltoli committed Nov 8, 2023
1 parent 6d60c09 commit 7559a5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/src/main/java/org/kframework/compile/ResolveFun.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ public K apply(KApply k) {
&& app.items().get(0) instanceof KVariable) {
nameHint1 = ((KVariable) app.items().get(0)).name();
}
if (body instanceof KApply) {
nameHint2 = ((KApply) body).klabel().name();
if (body instanceof KApply app) {
nameHint2 = app.klabel().name();
}
KLabel fun = getUniqueLambdaLabel(nameHint1, nameHint2);
Sort lhsSort = sort(RewriteToTop.toLeft(body));
Expand Down

0 comments on commit 7559a5a

Please sign in to comment.