diff options
author | paltherr <paltherr@epfl.ch> | 2004-02-01 13:20:10 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2004-02-01 13:20:10 +0000 |
commit | 43318b75bd2752db19925291d0f6195fb984260a (patch) | |
tree | 7e8eeecbaec0ad6744e0a56747ac5c03f08e7246 /sources/scalac/typechecker/RefCheck.java | |
parent | b95957de6cd7ba0bd123076c20204e53f5949b81 (diff) | |
download | scala-43318b75bd2752db19925291d0f6195fb984260a.tar.gz scala-43318b75bd2752db19925291d0f6195fb984260a.tar.bz2 scala-43318b75bd2752db19925291d0f6195fb984260a.zip |
- Removed Definitions.NULL and Definitions.ZERO
Diffstat (limited to 'sources/scalac/typechecker/RefCheck.java')
-rw-r--r-- | sources/scalac/typechecker/RefCheck.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/scalac/typechecker/RefCheck.java b/sources/scalac/typechecker/RefCheck.java index 54e749e8b6..8e10889800 100644 --- a/sources/scalac/typechecker/RefCheck.java +++ b/sources/scalac/typechecker/RefCheck.java @@ -535,7 +535,7 @@ public class RefCheck extends Transformer implements Modifiers, Kinds { tree.pos, varname, sym.owner(), PRIVATE | MUTABLE | SYNTHETIC) .setInfo(sym.type()); sym.owner().members().enterOrOverload(mvar); - Tree vdef = gen.ValDef(mvar, gen.Ident(tree.pos, defs.NULL)); + Tree vdef = gen.ValDef(mvar, gen.mkNullLit(tree.pos)); // { if (null == m$) m$ = new m$class; m$ } Symbol eqMethod = getUnaryMemberMethod( @@ -543,7 +543,7 @@ public class RefCheck extends Transformer implements Modifiers, Kinds { Tree body = gen.Block(new Tree[]{ gen.If( gen.Apply( - gen.Select(gen.Ident(tree.pos, defs.NULL), eqMethod), + gen.Select(gen.mkNullLit(tree.pos), eqMethod), new Tree[]{gen.mkRef(tree.pos, mvar)}), gen.Assign(gen.mkRef(tree.pos, mvar), alloc), gen.Block(tree.pos, Tree.EMPTY_ARRAY)), |