Skip to content

Commit 7474482

Browse files
committed
Apply type detection fix to FunctionSpec
Signed-off-by: Ben Sherman <bentshermann@gmail.com>
1 parent 20a8c92 commit 7474482

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/nextflow/src/main/groovy/nextflow/plugin/spec/FunctionSpec.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class FunctionSpec {
5858

5959
private static Object fromType(ClassNode cn) {
6060
final name = Types.getName(cn.getTypeClass())
61-
if( cn.getGenericsTypes() != null ) {
61+
if( !cn.isGenericsPlaceHolder() && cn.getGenericsTypes() != null ) {
6262
final typeArguments = cn.getGenericsTypes().collect { gt -> fromType(gt.getType()) }
6363
return [ name: name, typeArguments: typeArguments ]
6464
}

0 commit comments

Comments
 (0)