diff options
Diffstat (limited to 'sources')
-rw-r--r-- | sources/scalac/ast/TreeGen.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/scalac/ast/TreeGen.java b/sources/scalac/ast/TreeGen.java index e6b98f0f42..d8f61d27de 100644 --- a/sources/scalac/ast/TreeGen.java +++ b/sources/scalac/ast/TreeGen.java @@ -173,10 +173,10 @@ public class TreeGen implements Kinds, Modifiers, TypeTags { /** Builds a default zero value according to given type. */ public Tree mkDefaultValue(int pos, Type type) { - if (definitions.ALLREF_TYPE().isSubType(type)) return mkNullLit(pos); switch (type.unbox()) { case UnboxedType(int tag): return mkDefaultValue(pos, tag); } + if (definitions.ALLREF_TYPE().isSubType(type)) return mkNullLit(pos); return mkZeroLit(pos); } |