Skip to content

Commit

Permalink
Fix gcc build
Browse files Browse the repository at this point in the history
  • Loading branch information
MikePopoloski committed Mar 23, 2024
1 parent 88261ff commit 1660346
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/ast/symbols/SubroutineSymbols.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -553,11 +553,11 @@ struct LocalVarCheckVisitor {
if (ValueExpressionBase::isKind(expr.kind)) {
if (auto sym = expr.getSymbolReference();
sym && sym->kind == SymbolKind::ClassProperty) {
checkVisibility(*sym, expr, sym->as<ClassPropertySymbol>().visibility);
checkVisibility(*sym, expr, sym->template as<ClassPropertySymbol>().visibility);
}
}
else if (expr.kind == ExpressionKind::Call) {
auto& call = expr.as<CallExpression>();
auto& call = expr.template as<CallExpression>();
if (!call.isSystemCall()) {
auto& sub = *std::get<const SubroutineSymbol*>(call.subroutine);
checkVisibility(sub, expr, sub.visibility);
Expand Down

0 comments on commit 1660346

Please sign in to comment.