diff options
author | paltherr <paltherr@epfl.ch> | 2004-01-07 16:28:24 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2004-01-07 16:28:24 +0000 |
commit | b05601a61b5ff8783cac2a47ae7ed3fe3430055b (patch) | |
tree | b675d0b95670b9d3d9498703429b0ceb3d9e8191 /sources/scalac/symtab/classfile/UnPickle.java | |
parent | 836f5fbd907fe00bd9bd3849f1d41b13c2afd53a (diff) | |
download | scala-b05601a61b5ff8783cac2a47ae7ed3fe3430055b.tar.gz scala-b05601a61b5ff8783cac2a47ae7ed3fe3430055b.tar.bz2 scala-b05601a61b5ff8783cac2a47ae7ed3fe3430055b.zip |
- Added correct owner to non-class compound types
Diffstat (limited to 'sources/scalac/symtab/classfile/UnPickle.java')
-rw-r--r-- | sources/scalac/symtab/classfile/UnPickle.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sources/scalac/symtab/classfile/UnPickle.java b/sources/scalac/symtab/classfile/UnPickle.java index 905e5a8b22..028c5a1ecd 100644 --- a/sources/scalac/symtab/classfile/UnPickle.java +++ b/sources/scalac/symtab/classfile/UnPickle.java @@ -347,13 +347,9 @@ public class UnPickle implements Kinds, Modifiers, EntryTags, TypeTags { break; case COMPOUNDtpe: Symbol[] clazzs = readSymbolRefs(end); + assert clazzs.length == 1; Type[] parents = readTypeRefs(end); - if (clazzs.length == 0) { - tpe = Type.compoundType(parents, new Scope()); - } else { - assert clazzs.length == 1; - tpe = Type.compoundType(parents, new Scope(), clazzs[0]); - } + tpe = Type.compoundType(parents, new Scope(), clazzs[0]); break; case METHODtpe: Type restype = readTypeRef(); |