diff options
author | buraq <buraq@epfl.ch> | 2003-09-26 15:28:05 +0000 |
---|---|---|
committer | buraq <buraq@epfl.ch> | 2003-09-26 15:28:05 +0000 |
commit | dc3fd344db8a5ea789e052530de0fa1b28721704 (patch) | |
tree | 5f2ff2d1d0bd88168263d602fdac2ae0dfa02bf4 /sources | |
parent | bb0022e6f6111b017e77042cce2ec5736edbaccc (diff) | |
download | scala-dc3fd344db8a5ea789e052530de0fa1b28721704.tar.gz scala-dc3fd344db8a5ea789e052530de0fa1b28721704.tar.bz2 scala-dc3fd344db8a5ea789e052530de0fa1b28721704.zip |
bugfix, using TreeGen now instead of make...
Diffstat (limited to 'sources')
-rw-r--r-- | sources/scalac/transformer/matching/CodeFactory.java | 8 | ||||
-rw-r--r-- | sources/scalac/transformer/matching/RightTracerInScala.java | 4 |
2 files changed, 5 insertions, 7 deletions
diff --git a/sources/scalac/transformer/matching/CodeFactory.java b/sources/scalac/transformer/matching/CodeFactory.java index 0406f13567..d6df1fba31 100644 --- a/sources/scalac/transformer/matching/CodeFactory.java +++ b/sources/scalac/transformer/matching/CodeFactory.java @@ -402,12 +402,8 @@ class CodeFactory extends PatternTool { Scope scp = seqListSym().members(); Symbol headSym = scp.lookup ( HEAD_N ); assert headSym != Symbol.NONE; - return gen.Apply( make.Select( pos, - arg, - HEAD_N ) - .setType( headSym.type() ) - .setSymbol( headSym ), - Tree.EMPTY_ARRAY); + return gen.Apply( gen.Select( pos, arg, headSym ), + Tree.EMPTY_ARRAY ); } /** return the analyzed type diff --git a/sources/scalac/transformer/matching/RightTracerInScala.java b/sources/scalac/transformer/matching/RightTracerInScala.java index 08d3b6a17c..2101eb382c 100644 --- a/sources/scalac/transformer/matching/RightTracerInScala.java +++ b/sources/scalac/transformer/matching/RightTracerInScala.java @@ -113,7 +113,9 @@ public class RightTracerInScala extends TracerInScala { if( keepType ) rhs = cf.ignoreValue( realVar.type() ); else - rhs = /* cf.newRef( */ cf.newSeqNil( elementType ) /* ) */; + rhs = /* cf.newRef( */ cf.newSeqNil( elementType ) + .setType( cf.SeqListType( elementType )); + /* ) */; helpVar.flags |= Modifiers.MUTABLE; Tree varDef = gen.ValDef( helpVar, rhs ); //((ValDef) varDef).kind = Kinds.VAR; |