diff options
author | Martin Odersky <odersky@gmail.com> | 2013-03-26 16:20:53 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-03-26 16:20:53 +0100 |
commit | ebc23ad054787d87b18b713f26847ee1443d6890 (patch) | |
tree | acd988222be4653366e446f3ff838d916206152c /src/dotty/tools/dotc/core/Types.scala | |
parent | 5a039031c165fd9116749f28e9d9e6a0b6d5b0e6 (diff) | |
download | dotty-ebc23ad054787d87b18b713f26847ee1443d6890.tar.gz dotty-ebc23ad054787d87b18b713f26847ee1443d6890.tar.bz2 dotty-ebc23ad054787d87b18b713f26847ee1443d6890.zip |
Some more fixes of classfile reading.
Diffstat (limited to 'src/dotty/tools/dotc/core/Types.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/Types.scala | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/dotty/tools/dotc/core/Types.scala b/src/dotty/tools/dotc/core/Types.scala index 35225e8e7..c1a84604f 100644 --- a/src/dotty/tools/dotc/core/Types.scala +++ b/src/dotty/tools/dotc/core/Types.scala @@ -634,9 +634,11 @@ object Types { if (buf == null) null else { if (tparams == null) tparams = tycon.typeParams - val tparam = tparams(buf.size) - if (name == tparam.name) buf += tp.refinedInfo.argType(tparam) - else null + if (buf.size < tparams.length) { + val tparam = tparams(buf.size) + if (name == tparam.name) buf += tp.refinedInfo.argType(tparam) + else null + } else null } case _ => if (refineCount == 0) null |