diff options
author | Bruno Bieth <biethb@gmail.com> | 2015-06-22 16:30:31 +0200 |
---|---|---|
committer | Bruno Bieth <biethb@gmail.com> | 2015-06-22 16:30:31 +0200 |
commit | ebb933379fc7cb68b6cbba1cc59e08be8263ae91 (patch) | |
tree | dc97e97fbb698dfe82316a008620070d4d88e531 /src | |
parent | 7f1336a2ffaf573dd71192932e7b599213e5a1d0 (diff) | |
download | scala-ebb933379fc7cb68b6cbba1cc59e08be8263ae91.tar.gz scala-ebb933379fc7cb68b6cbba1cc59e08be8263ae91.tar.bz2 scala-ebb933379fc7cb68b6cbba1cc59e08be8263ae91.zip |
SI-9253 avoid IndexOutOfBoundsException in TypeMaps.correspondingTypeArgument
Diffstat (limited to 'src')
-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) |