diff --git a/compiler/src/main/scala/play/twirl/compiler/TwirlCompiler.scala b/compiler/src/main/scala/play/twirl/compiler/TwirlCompiler.scala index f3001f75..64436275 100644 --- a/compiler/src/main/scala/play/twirl/compiler/TwirlCompiler.scala +++ b/compiler/src/main/scala/play/twirl/compiler/TwirlCompiler.scala @@ -565,7 +565,7 @@ package """ :+ packageName :+ """ .map { p => p.name.toString + Option(p.tpt.toString) .filter(_.startsWith("_root_.scala.")) - .map(_ => ":_*") + .map(_ => ".toIndexedSeq:_*") .getOrElse("") } .mkString(",") + ")" @@ -594,7 +594,7 @@ package """ :+ packageName :+ """ .map { p => p.name.toString + Option(p.tpt.toString) .filter(_.startsWith("_root_.scala.")) - .map(_ => ":_*") + .map(_ => ".toIndexedSeq:_*") .getOrElse("") } .mkString(",") + ")"