         }
         output.append(")))")
         if let returnType = functionType.returnType, case .function = parser.typesMap[returnType]! {
-            output.append(".\(returnType)")
+            output.append(".\(returnType)Unit")
         }
         output.append(" }\n    }\n}\n\n")
     }

        }
        output.append(")))")
        if let returnType = functionType.returnType, case .function = parser.typesMap[returnType]! {
            output.append(".\(returnType)")
        }
        output.append("\n}\n\n")
    }

            writeCommaSeparated(functionType.argumentTypes.enumerated(), to: &output) {
                output.append("Function.A(argumentNumber: \($0.offset + 1))")
                if case .function? = parser.typesMap[$0.element] {
                    output.append(".\($0.element)Unit")
                }
            }
            output.append(")\n")
