diff options
author | paltherr <paltherr@epfl.ch> | 2003-07-22 15:46:35 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2003-07-22 15:46:35 +0000 |
commit | b08af12a369eda154addf9faa28333565aa3175d (patch) | |
tree | c5feb273a22fba4a11f2db039c03e71732ede015 /sources | |
parent | 53efe4c36960c4f757592a22c05f40eef7df41f2 (diff) | |
download | scala-b08af12a369eda154addf9faa28333565aa3175d.tar.gz scala-b08af12a369eda154addf9faa28333565aa3175d.tar.bz2 scala-b08af12a369eda154addf9faa28333565aa3175d.zip |
- Fixed code of method This
Diffstat (limited to 'sources')
-rw-r--r-- | sources/scalac/ast/TreeGen.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/scalac/ast/TreeGen.java b/sources/scalac/ast/TreeGen.java index ca34a8dc4d..4f9c78b51d 100644 --- a/sources/scalac/ast/TreeGen.java +++ b/sources/scalac/ast/TreeGen.java @@ -461,7 +461,8 @@ public class TreeGen implements Kinds, Modifiers { /** Build and attribute this node with given symbol. */ public Tree This(int pos, Symbol sym) { - return make.This(pos, Ident(pos, sym)).setType(sym.thisType()); + Type type = sym.thisType(); + return make.This(pos, TypeTerm(pos, type)).setType(type); } /** Build and attribute super node with given type. |