Skip to content

Commit

Permalink
Update runtime/src/swam/runtime/import_generator/ImportGenerator.scala
Browse files Browse the repository at this point in the history
Co-Authored-By: Lucas Satabin <lucas.satabin@gnieh.org>
  • Loading branch information
Jacarte and satabin committed Mar 6, 2020
1 parent 6f9be3f commit f31dc51
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -69,10 +69,10 @@ class ImportGenerator() {
val name = s"${moduleName}_$fieldName"

s"def $name(${func.params
.zip(Seq.range(0, func.params.length))
.map(t => {
buildParameter(t._2, t._1)
})
.zipWithIndex
.map {
case (p, idx) => buildParameter(idx, p)
}
.mkString(",")}): $f[${buildReturn(func.t)}]"
}

Expand Down

0 comments on commit f31dc51

Please sign in to comment.