diff options
| author | Yong He <yonghe@outlook.com> | 2025-05-16 10:42:11 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-16 10:42:11 -0700 |
| commit | 9dfd5244ad2953753535e82acd05e72e5ab2bc5f (patch) | |
| tree | 0f7c8a0bf4ea3dd25348e1d1ac8e5bfcfd8c9724 /source/slang/slang-check-decl.cpp | |
| parent | 1fd7b2296d8360c245a0c732e7f842876533f92a (diff) | |
Allow lambda exprs without captures to coerce to `functype`. (#7129)
Diffstat (limited to 'source/slang/slang-check-decl.cpp')
| -rw-r--r-- | source/slang/slang-check-decl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-check-decl.cpp b/source/slang/slang-check-decl.cpp index f340bd6fd..79482ea6e 100644 --- a/source/slang/slang-check-decl.cpp +++ b/source/slang/slang-check-decl.cpp @@ -4449,7 +4449,7 @@ void SemanticsVisitor::addModifiersToSynthesizedDecl( auto synStaticModifier = m_astBuilder->create<HLSLStaticModifier>(); synthesized->modifiers.first = synStaticModifier; } - else + else if (context) { // For a non-`static` requirement, we need a `this` parameter. // |
