Skip to content

Commit

Permalink
Merge pull request #238 from UniversityofWarwick/1.4.x
Browse files Browse the repository at this point in the history
Fixes issue 237
  • Loading branch information
mergify[bot] authored Jul 12, 2019
2 parents 2d26ae3 + 4d5b58e commit 7e33860
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ package """ :+ packageName :+ """
}.mkString(",") + ")",
returnType,
params.map(group => "(" + group.map { p =>
p.name.toString + Option(p.tpt.toString).filter(_.startsWith("_root_.scala.<repeated>")).map(_ => ":_*").getOrElse("")
p.name.toString + Option(p.tpt.toString).filter(_.startsWith("_root_.scala.<repeated>")).map(_ => ".toIndexedSeq:_*").getOrElse("")
}.mkString(",") + ")").mkString)

val templateType = "_root_.play.twirl.api.Template%s[%s%s]".format(
Expand All @@ -453,7 +453,7 @@ package """ :+ packageName :+ """
functionType,
params.map(group => "(" + group.map(_.name.toString).mkString(",") + ")").mkString(" => "),
params.map(group => "(" + group.map { p =>
p.name.toString + Option(p.tpt.toString).filter(_.startsWith("_root_.scala.<repeated>")).map(_ => ":_*").getOrElse("")
p.name.toString + Option(p.tpt.toString).filter(_.startsWith("_root_.scala.<repeated>")).map(_ => ".toIndexedSeq:_*").getOrElse("")
}.mkString(",") + ")").mkString)

(renderCall, f, templateType)
Expand Down

0 comments on commit 7e33860

Please sign in to comment.