diff options
Diffstat (limited to 'src/shared/cplusplus/CheckExpression.cpp')
-rw-r--r-- | src/shared/cplusplus/CheckExpression.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shared/cplusplus/CheckExpression.cpp b/src/shared/cplusplus/CheckExpression.cpp index c971204c2e..748fa9c901 100644 --- a/src/shared/cplusplus/CheckExpression.cpp +++ b/src/shared/cplusplus/CheckExpression.cpp @@ -289,12 +289,13 @@ bool CheckExpression::visit(ThisExpressionAST *) bool CheckExpression::visit(CompoundExpressionAST *ast) { - return true; // ### + _fullySpecifiedType = semantic()->check(ast->compoundStatement, _scope); + return false; } bool CheckExpression::visit(NestedExpressionAST *ast) { - FullySpecifiedType exprTy = semantic()->check(ast->expression, _scope); + _fullySpecifiedType = semantic()->check(ast->expression, _scope); return false; } |