Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@ public void visitParamV1(ParamNodeV1 node) {
public void visitWorkflow(WorkflowNode node) {
var classScope = workflowDsl(node.isEntry());
if( node.isEntry() && paramsType != null ) {
classScope = new ClassNode(classScope.getTypeClass());
var paramsMethod = classScope.getDeclaredMethods("getParams").get(0);
paramsMethod.setReturnType(paramsType);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -534,4 +534,21 @@ class ScriptResolveTest extends Specification {
deleteDir(root)
}

def 'should resolve piped operators in the entry workflow with a params block' () {
when:
def errors = check(
'''\
params {
greeting: String = 'hello'
}

workflow {
channel.of(1, 2) | view
}
'''
)
then:
errors.size() == 0
}

}
Loading