summaryrefslogtreecommitdiff
path: root/source/slang/slang-check-expr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-check-expr.cpp')
-rw-r--r--source/slang/slang-check-expr.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/slang/slang-check-expr.cpp b/source/slang/slang-check-expr.cpp
index d2e5afd85..42842995d 100644
--- a/source/slang/slang-check-expr.cpp
+++ b/source/slang/slang-check-expr.cpp
@@ -1992,7 +1992,11 @@ namespace Slang
{
auto containerDecl = scope->containerDecl;
- if( auto funcDeclBase = as<FunctionDeclBase>(containerDecl) )
+ if( auto setterDecl = as<SetterDecl>(containerDecl) )
+ {
+ expr->type.isLeftValue = true;
+ }
+ else if( auto funcDeclBase = as<FunctionDeclBase>(containerDecl) )
{
if( funcDeclBase->hasModifier<MutatingAttribute>() )
{