Skip to content

Commit

Permalink
Another
Browse files Browse the repository at this point in the history
  • Loading branch information
ajreynol committed Jan 15, 2025
1 parent 2014ae5 commit c37d439
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/type_checker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,9 @@ Expr TypeChecker::evaluateLiteralOpInternal(
case Kind::EVAL_DT_CONSTRUCTORS:
case Kind::EVAL_DT_SELECTORS:
{
AppInfo* ac = d_state.getAppInfo(args[0]);
Expr sym(args[0]);
sym = sym.getKind()==Kind::APPLY_OPAQUE ? sym[0] : sym;
AppInfo* ac = d_state.getAppInfo(sym.getValue());
if (ac != nullptr)
{
Assert(args[0]->isGround());
Expand Down

0 comments on commit c37d439

Please sign in to comment.