File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -147,13 +147,15 @@ class ElimRepeated extends MiniPhase with InfoTransformer { thisPhase =>
147
147
/** Is this the type of a method that has a repeated parameter type as
148
148
* its last parameter in the last parameter list?
149
149
*/
150
- private def isValidJavaVarArgs (t : Type )(using Context ): Boolean = t match
150
+ private def isValidJavaVarArgs (tp : Type )(using Context ): Boolean = tp match
151
151
case mt : MethodType =>
152
152
val initp :+ lastp = mt.paramInfoss
153
153
initp.forall(_.forall(! _.isRepeatedParam)) &&
154
154
lastp.nonEmpty &&
155
155
lastp.init.forall(! _.isRepeatedParam) &&
156
156
lastp.last.isRepeatedParam
157
+ case pt : PolyType =>
158
+ isValidJavaVarArgs(pt.resultType)
157
159
case _ => false
158
160
159
161
You can’t perform that action at this time.
0 commit comments