diff options
Diffstat (limited to 'source/slang/slang-ast-print.cpp')
| -rw-r--r-- | source/slang/slang-ast-print.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/slang/slang-ast-print.cpp b/source/slang/slang-ast-print.cpp index b38b58385..23430cd13 100644 --- a/source/slang/slang-ast-print.cpp +++ b/source/slang/slang-ast-print.cpp @@ -168,7 +168,9 @@ void ASTPrinter::_addDeclPathRec(const DeclRef<Decl>& declRef, Index depth) // If the parent declaration is a generic, then we need to print out its // signature - if (parentGenericDeclRef) + if (parentGenericDeclRef && + !declRef.as<GenericValueParamDecl>() && + !declRef.as<GenericTypeParamDecl>()) { auto genSubst = as<GenericSubstitution>(declRef.substitutions.substitutions); if (genSubst) |
