diff options
Diffstat (limited to 'source/slang/slang-check-overload.cpp')
| -rw-r--r-- | source/slang/slang-check-overload.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/slang/slang-check-overload.cpp b/source/slang/slang-check-overload.cpp index 5a2b0872f..71e8488d8 100644 --- a/source/slang/slang-check-overload.cpp +++ b/source/slang/slang-check-overload.cpp @@ -1250,7 +1250,8 @@ Expr* SemanticsVisitor::CompleteOverloadCandidate( { auto expr = m_astBuilder->create<PartiallyAppliedGenericExpr>(); expr->loc = context.loc; - expr->originalExpr = baseExpr; + expr->originalExpr = context.originalExpr; + expr->baseExpr = baseExpr; expr->baseGenericDeclRef = as<DeclRefExpr>(baseExpr)->declRef.as<GenericDecl>(); auto args = tryGetGenericArguments(candidate.subst, expr->baseGenericDeclRef.getDecl()); |
