Skip to content
This repository was archived by the owner on Sep 1, 2020. It is now read-only.

Commit ebb9333

Browse files
committed
SI-9253 avoid IndexOutOfBoundsException in TypeMaps.correspondingTypeArgument
1 parent 7f1336a commit ebb9333

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reflect/scala/reflect/internal/tpe/TypeMaps.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ private[internal] trait TypeMaps {
561561
| tparams ${rhsSym.typeParams map own_s mkString ", "}
562562
|"""
563563

564-
if (argIndex < 0)
564+
if (!rhsArgs.isDefinedAt(argIndex))
565565
abort(s"Something is wrong: cannot find $lhs in applied type $rhs\n" + explain)
566566
else {
567567
val targ = rhsArgs(argIndex)

0 commit comments

Comments
 (0)