diff options
Diffstat (limited to 'source/slang/slang-ast-type.cpp')
| -rw-r--r-- | source/slang/slang-ast-type.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/slang/slang-ast-type.cpp b/source/slang/slang-ast-type.cpp index a869c95a7..ba033c3ad 100644 --- a/source/slang/slang-ast-type.cpp +++ b/source/slang/slang-ast-type.cpp @@ -473,6 +473,11 @@ Type* NamespaceType::_createCanonicalTypeOverride() return this; } +Type* DifferentialPairType::getPrimalType() +{ + return as<Type>(findInnerMostGenericSubstitution(declRef.substitutions)->getArgs()[0]); +} + // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! PtrTypeBase !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
