Skip to content

Commit 0db2804

Browse files
akoclaude
andcommitted
fix(visitor): treat RETURNS Void as void return type like Nothing
buildMicroflowDataType already recognized bare "Nothing" as a void return type, but "Void" was falling through to the entity-reference path, causing "entity '.Void' not found" at execution time. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 61bfe1b commit 0db2804

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mdl/visitor/visitor_microflow.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ func buildMicroflowDataType(ctx parser.IDataTypeContext) ast.DataType {
8686
// Handle bare qualified name - in microflow context, this is an ENTITY reference
8787
if qn := dtCtx.QualifiedName(); qn != nil {
8888
name := buildQualifiedName(qn)
89-
// "Nothing" means void return type (no return value)
90-
if name.Module == "" && strings.EqualFold(name.Name, "Nothing") {
89+
// "Nothing" / "Void" means void return type (no return value)
90+
if name.Module == "" && (strings.EqualFold(name.Name, "Nothing") || strings.EqualFold(name.Name, "Void")) {
9191
return ast.DataType{Kind: ast.TypeVoid}
9292
}
9393
return ast.DataType{Kind: ast.TypeEntity, EntityRef: &name}

0 commit comments

Comments
 (0)