Skip to content

Commit

Permalink
fix bug in _structHasMemberWithValue
Browse files Browse the repository at this point in the history
  • Loading branch information
ArielG-NV committed Sep 5, 2024
1 parent afa8812 commit f56d34a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/slang/slang-check-decl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2583,8 +2583,10 @@ namespace Slang
for (auto i : getMembersOfType<InheritanceDecl>(m_astBuilder, structDecl, MemberFilterStyle::Instance))
{
if (auto memberStruct = as<StructDecl>(i.getDecl()->base.type))
_structHasMemberWithValue(m_astBuilder, memberStruct);
if (_structHasMemberWithValue(m_astBuilder, memberStruct))
return true;
}
return false;
}

// Concretize interface conformances so that we have witnesses as required for lookup.
Expand Down

0 comments on commit f56d34a

Please sign in to comment.