Skip to content

Commit

Permalink
allow wittness through inheritance (I misread the code comments)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArielG-NV committed Sep 5, 2024
1 parent f56d34a commit 7df745d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/slang/slang-check-decl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5814,7 +5814,7 @@ namespace Slang
// requests will be handled further down. For now we include
// lookup results that might be usable, but not as-is.
//
LookupResult lookupResult = lookUpMember(m_astBuilder, this, name, subType, nullptr, LookupMask::Default, LookupOptions((uint8_t)LookupOptions::IgnoreBaseInterfaces | (uint8_t)LookupOptions::IgnoreInheritance));
LookupResult lookupResult = lookUpMember(m_astBuilder, this, name, subType, nullptr, LookupMask::Default, LookupOptions((uint8_t)LookupOptions::IgnoreBaseInterfaces));

if (!lookupResult.isValid())
{
Expand Down
4 changes: 2 additions & 2 deletions tests/compute/assoctype-lookup.slang
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ struct StandardBoneWeightSet : IBoneWeightSet
{
struct PackedType
{
uint boneIds : BONEIDS;
uint boneWeights : BONEWEIGHTS;
uint boneIds : BONEIDS = {};
uint boneWeights : BONEWEIGHTS = {};
};
PackedType field;
};
Expand Down

0 comments on commit 7df745d

Please sign in to comment.