diff options
author | Seth Tisue <seth@tisue.net> | 2015-06-22 13:47:11 -0400 |
---|---|---|
committer | Seth Tisue <seth@tisue.net> | 2015-06-22 13:47:11 -0400 |
commit | 9253676b845a70cc6c33b34c17c83254c8073639 (patch) | |
tree | dc97e97fbb698dfe82316a008620070d4d88e531 | |
parent | 7f1336a2ffaf573dd71192932e7b599213e5a1d0 (diff) | |
parent | ebb933379fc7cb68b6cbba1cc59e08be8263ae91 (diff) | |
download | scala-9253676b845a70cc6c33b34c17c83254c8073639.tar.gz scala-9253676b845a70cc6c33b34c17c83254c8073639.tar.bz2 scala-9253676b845a70cc6c33b34c17c83254c8073639.zip |
Merge pull request #4573 from backuitist/ticket/9253
SI-9253 avoid IndexOutOfBoundsException in TypeMaps.correspondingTypeArgument
-rw-r--r-- | src/reflect/scala/reflect/internal/tpe/TypeMaps.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reflect/scala/reflect/internal/tpe/TypeMaps.scala b/src/reflect/scala/reflect/internal/tpe/TypeMaps.scala index c705ca7069..15a87200f1 100644 --- a/src/reflect/scala/reflect/internal/tpe/TypeMaps.scala +++ b/src/reflect/scala/reflect/internal/tpe/TypeMaps.scala @@ -561,7 +561,7 @@ private[internal] trait TypeMaps { | tparams ${rhsSym.typeParams map own_s mkString ", "} |""" - if (argIndex < 0) + if (!rhsArgs.isDefinedAt(argIndex)) abort(s"Something is wrong: cannot find $lhs in applied type $rhs\n" + explain) else { val targ = rhsArgs(argIndex) |