aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/SymDenotations.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-03-19 15:20:33 +0100
committerMartin Odersky <odersky@gmail.com>2013-03-19 15:20:59 +0100
commit2fdf86e4f9a355eeb2ae7f539824270edd76764a (patch)
treef3b2a85be493c08cd3b2c00f2943e57b17d3ec7b /src/dotty/tools/dotc/core/SymDenotations.scala
parentb2f779aad92de0d116cdaf1aba87197695233ebb (diff)
downloaddotty-2fdf86e4f9a355eeb2ae7f539824270edd76764a.tar.gz
dotty-2fdf86e4f9a355eeb2ae7f539824270edd76764a.tar.bz2
dotty-2fdf86e4f9a355eeb2ae7f539824270edd76764a.zip
Fixing problem with reading typeParams correctly in Unpickler
Diffstat (limited to 'src/dotty/tools/dotc/core/SymDenotations.scala')
-rw-r--r--src/dotty/tools/dotc/core/SymDenotations.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/SymDenotations.scala b/src/dotty/tools/dotc/core/SymDenotations.scala
index bf51b443c..3f37c41f5 100644
--- a/src/dotty/tools/dotc/core/SymDenotations.scala
+++ b/src/dotty/tools/dotc/core/SymDenotations.scala
@@ -636,7 +636,8 @@ object SymDenotations {
}
private def computeTypeParams(implicit ctx: Context): List[TypeSymbol] =
- (preCompleteDecls.toList filter (_ is TypeParam)).asInstanceOf[List[TypeSymbol]]
+ preCompleteDecls.toList.filter(sym =>
+ (sym is TypeParam) && sym.owner == symbol).asInstanceOf[List[TypeSymbol]]
// ------ class-specific operations -----------------------------------