summaryrefslogtreecommitdiff
path: root/sources/scalac/transformer/TailCall.java
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2003-11-14 16:55:21 +0000
committerMartin Odersky <odersky@gmail.com>2003-11-14 16:55:21 +0000
commit1ce2b54384639ff358071e8965a5cf39a5a43882 (patch)
tree4b17bb9ca078870b163db66db8f3ba77849ade00 /sources/scalac/transformer/TailCall.java
parentd71d7bb6f1f6924cb27662b73fdcbf2b37bfd3ae (diff)
downloadscala-1ce2b54384639ff358071e8965a5cf39a5a43882.tar.gz
scala-1ce2b54384639ff358071e8965a5cf39a5a43882.tar.bz2
scala-1ce2b54384639ff358071e8965a5cf39a5a43882.zip
*** empty log message ***
Diffstat (limited to 'sources/scalac/transformer/TailCall.java')
-rw-r--r--sources/scalac/transformer/TailCall.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/sources/scalac/transformer/TailCall.java b/sources/scalac/transformer/TailCall.java
index 39095ac5d6..dca3874d23 100644
--- a/sources/scalac/transformer/TailCall.java
+++ b/sources/scalac/transformer/TailCall.java
@@ -126,7 +126,7 @@ public class TailCall extends Transformer {
// The LabelDef needs identifiers as parameters.
Ident [] args = to_ident(newVparams[0]);
// Create a new LabelDef with the new body of the function as the rhs
- Tree labelDef = new ExtLabelDef(newLabel,args,newRhs).setType(newRhs.type());
+ Tree labelDef = new ExtLabelDef(newLabel,args,newRhs).setType(newRhs.getType());
// Create a new function node with the LabelDef as the rhs.
return copy.DefDef(tree,tree.symbol(), newTparams,
newVparams, newTpe, labelDef);
@@ -156,7 +156,7 @@ public class TailCall extends Transformer {
Tree[] newArgs = tail_transform(args,false);
// Redirect the call to the LabelDef.
- Tree newTarget = new ExtIdent(state.newLabel).setType(fun.type());
+ Tree newTarget = new ExtIdent(state.newLabel).setType(fun.getType());
// Indicate that we have inserted a tail call.
state.needLabelDef = true;
return copy.Apply(tree,newTarget,newArgs);
@@ -348,13 +348,13 @@ public class TailCall extends Transformer {
switch (tree[i]) {
case AbsTypeDef(int mods, Name name, Tree bound, Tree lobound):
Ident arg = new ExtIdent(tree[i].symbol());
- arg.setType(tree[i].type());
+ arg.setType(tree[i].getType());
ids[i]= arg;
break;
case ValDef(int mods, Name name, Tree tpe, Tree.Empty):
Ident arg = new ExtIdent(tree[i].symbol());
- arg.setType(tree[i].type());
+ arg.setType(tree[i].getType());
ids[i]= arg;
break;