diff --git a/module.cpp b/module.cpp index 1539347e..99da37ab 100644 --- a/module.cpp +++ b/module.cpp @@ -356,8 +356,11 @@ lRecursiveCheckValidParamType(const Type *t) { return lRecursiveCheckValidParamType(seqt->GetElementType()); const PointerType *pt = dynamic_cast(t); - if (pt != NULL) - return (pt->IsSlice() || pt->IsVaryingType()); + if (pt != NULL) { + if (pt->IsSlice() || pt->IsVaryingType()) + return true; + return lRecursiveCheckValidParamType(pt->GetBaseType()); + } return t->IsVaryingType(); }