diff options
Diffstat (limited to 'source/slang/slang-check-decl.cpp')
| -rw-r--r-- | source/slang/slang-check-decl.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/slang/slang-check-decl.cpp b/source/slang/slang-check-decl.cpp index 009d0a987..5a1218abe 100644 --- a/source/slang/slang-check-decl.cpp +++ b/source/slang/slang-check-decl.cpp @@ -6024,6 +6024,13 @@ namespace Slang // without any additional substitutions. if (extDecl->targetType->equals(type)) { + /* + auto subst = trySolveConstraintSystem( + &constraints, + DeclRef<Decl>(extGenericDecl, nullptr).as<GenericDecl>(), + as<GenericSubstitution>(as<DeclRefType>(type)->declRef.substitutions.substitutions)); + return DeclRef<Decl>(extDecl, subst).as<ExtensionDecl>(); + */ return createDefaultSubstitutionsIfNeeded(m_astBuilder, this, extDeclRef).as<ExtensionDecl>(); } |
