diff options
author | paltherr <paltherr@epfl.ch> | 2003-10-29 20:47:39 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2003-10-29 20:47:39 +0000 |
commit | 3be1b3ad5010de7bb7405aa98e0108bae5746c0b (patch) | |
tree | 1a565087c7ad02b09f4774ab895e0a03208e9095 | |
parent | bf54552f9869bbc7b8bbadbcffbda4d99d42da38 (diff) | |
download | scala-3be1b3ad5010de7bb7405aa98e0108bae5746c0b.tar.gz scala-3be1b3ad5010de7bb7405aa98e0108bae5746c0b.tar.bz2 scala-3be1b3ad5010de7bb7405aa98e0108bae5746c0b.zip |
- Simplified computation of list type
-rw-r--r-- | sources/scalac/typechecker/Analyzer.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sources/scalac/typechecker/Analyzer.java b/sources/scalac/typechecker/Analyzer.java index 855c55292b..6e5287dbd3 100644 --- a/sources/scalac/typechecker/Analyzer.java +++ b/sources/scalac/typechecker/Analyzer.java @@ -2013,10 +2013,7 @@ public class Analyzer extends Transformer implements Modifiers, Kinds { body = transform( body ); //assert body.type != null; if( TreeInfo.isSequenceValued( body ) ) { - Symbol listSym = definitions.getType( Name.fromString("scala.List") ).symbol(); - assert listSym != Symbol.NONE : "did not find Seq"; - - vble.setType( new Type.TypeRef(definitions.SCALA_TYPE, listSym, new Type[] { pt }) ); + vble.setType( definitions.listType(pt) ); } else { vble.setType( body.type ); } |