From 049aac1b80143753b4b3449e529024bafe2250be Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 12 Jul 2022 22:45:05 -0700 Subject: Support `class` types. (#2321) * Support `class` types. * Ignore class-keyword test * Fix codereview comments and warnings. Co-authored-by: Yong He --- source/slang/slang-check-expr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/slang-check-expr.cpp') 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; -- cgit v1.2.3