summaryrefslogtreecommitdiff
path: root/source/slang/slang-check-inheritance.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-check-inheritance.cpp')
-rw-r--r--source/slang/slang-check-inheritance.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/slang/slang-check-inheritance.cpp b/source/slang/slang-check-inheritance.cpp
index f774aae38..7af2d2e81 100644
--- a/source/slang/slang-check-inheritance.cpp
+++ b/source/slang/slang-check-inheritance.cpp
@@ -1149,6 +1149,10 @@ InheritanceInfo SharedSemanticsContext::_calcInheritanceInfo(
info.facets = FacetList(directFacet);
return info;
}
+ else if (auto modifiedType = as<ModifiedType>(type))
+ {
+ return _calcInheritanceInfo(modifiedType->getBase(), circularityInfo);
+ }
else
{
// As a fallback, any type not covered by the above cases will