diff options
Diffstat (limited to 'source')
| -rw-r--r-- | source/slang/slang-check-expr.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/slang/slang-check-expr.cpp b/source/slang/slang-check-expr.cpp index a530eb8f0..43987132e 100644 --- a/source/slang/slang-check-expr.cpp +++ b/source/slang/slang-check-expr.cpp @@ -674,6 +674,9 @@ Expr* SemanticsVisitor::maybeUseSynthesizedDeclForLookupResult( conformanceDecl->base.type = m_astBuilder->getDiffInterfaceType(); structDecl->addMember(conformanceDecl); structDecl->parentDecl = parent; + structDecl->ownedScope = m_astBuilder->create<Scope>(); + structDecl->ownedScope->containerDecl = structDecl; + structDecl->ownedScope->parent = getScope(parent); synthesizedDecl = structDecl; auto typeDef = m_astBuilder->create<TypeAliasDecl>(); |
