summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-check-expr.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-07-12 22:45:05 -0700
committerGitHub <noreply@github.com>2022-07-12 22:45:05 -0700
commit049aac1b80143753b4b3449e529024bafe2250be (patch)
treee6734ef240bf7016562a301009add1761caf06f6 /source/slang/slang-check-expr.cpp
parenta6775666c38ccaeb2a991921a08343afa09c659b (diff)
Support `class` types. (#2321)
* Support `class` types. * Ignore class-keyword test * Fix codereview comments and warnings. Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-check-expr.cpp')
-rw-r--r--source/slang/slang-check-expr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-check-expr.cpp b/source/slang/slang-check-expr.cpp
index a3fec4802..03da084d3 100644
--- a/source/slang/slang-check-expr.cpp
+++ b/source/slang/slang-check-expr.cpp
@@ -1675,7 +1675,7 @@ namespace Slang
Expr* SemanticsExprVisitor::visitTryExpr(TryExpr* expr)
{
- auto prevTryClauseType = expr->tryClauseType;
+ auto prevTryClauseType = m_enclosingTryClauseType;
m_enclosingTryClauseType = expr->tryClauseType;
expr->base = CheckTerm(expr->base);
m_enclosingTryClauseType = prevTryClauseType;