summaryrefslogtreecommitdiff
path: root/source/slang/slang-ast-type.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ast-type.cpp')
-rw-r--r--source/slang/slang-ast-type.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/slang/slang-ast-type.cpp b/source/slang/slang-ast-type.cpp
index 43fe751ee..664c940a8 100644
--- a/source/slang/slang-ast-type.cpp
+++ b/source/slang/slang-ast-type.cpp
@@ -517,6 +517,11 @@ Type* PtrTypeBase::getValueType()
return as<Type>(findInnerMostGenericSubstitution(declRef.substitutions)->args[0]);
}
+Type* OptionalType::getValueType()
+{
+ return as<Type>(findInnerMostGenericSubstitution(declRef.substitutions)->args[0]);
+}
+
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! NamedExpressionType !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
void NamedExpressionType::_toTextOverride(StringBuilder& out)