diff options
Diffstat (limited to 'source/slang/slang-check-overload.cpp')
| -rw-r--r-- | source/slang/slang-check-overload.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/slang/slang-check-overload.cpp b/source/slang/slang-check-overload.cpp index c13e74f69..50da2d3eb 100644 --- a/source/slang/slang-check-overload.cpp +++ b/source/slang/slang-check-overload.cpp @@ -508,10 +508,11 @@ namespace Slang return nullptr; } - if (paramDeclRef.getDecl()->findModifier<OutModifier>()) + if (paramDeclRef.getDecl()->findModifier<OutModifier>() || + paramDeclRef.getDecl()->findModifier<RefModifier>()) { // Function parameters marked with `out`, `inout`, - // or `in out` are all mutable in a way where + // `in out` or `ref` are all mutable in a way where // the result of mutations will be visible to the // caller. // |
