From 0a0595a1c73b956f8582879d518c75970b910c23 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Wed, 16 Jul 2003 10:49:15 +0000 Subject: *** empty log message *** --- sources/scalac/ast/TreeInfo.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sources/scalac/ast/TreeInfo.java') diff --git a/sources/scalac/ast/TreeInfo.java b/sources/scalac/ast/TreeInfo.java index f79a5765a5..9721afb447 100644 --- a/sources/scalac/ast/TreeInfo.java +++ b/sources/scalac/ast/TreeInfo.java @@ -112,10 +112,8 @@ public class TreeInfo { public static boolean isPureConstr(Tree tree) { switch (tree) { case Ident(_): + case Select(_, _): return tree.symbol() != null && tree.symbol().isPrimaryConstructor(); - case Select(Tree qual, _): - return isPureExpr(qual) && - tree.symbol() != null && tree.symbol().isPrimaryConstructor(); case TypeApply(Tree constr, _): return isPureConstr(constr); case Apply(Tree fn, Tree[] args): -- cgit v1.2.3