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

Commit 9253676

Browse files
committed
Merge pull request scala#4573 from backuitist/ticket/9253
SI-9253 avoid IndexOutOfBoundsException in TypeMaps.correspondingTypeArgument
2 parents 7f1336a + ebb9333 commit 9253676

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)