From 29f2b9e84c3568a5644a78237be63918977db227 Mon Sep 17 00:00:00 2001 From: buraq Date: Thu, 30 Oct 2003 13:03:59 +0000 Subject: added handling of Typed nodes to isSequenceValued --- sources/scalac/ast/TreeInfo.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sources/scalac/ast/TreeInfo.java') diff --git a/sources/scalac/ast/TreeInfo.java b/sources/scalac/ast/TreeInfo.java index a7a7e6de59..81c97a7e73 100644 --- a/sources/scalac/ast/TreeInfo.java +++ b/sources/scalac/ast/TreeInfo.java @@ -219,12 +219,12 @@ public class TreeInfo { return true; } return false; - case Apply( _, _ ): - case Literal( _ ): - return false; case Ident(Name n): // if Ident is a recursive var, then true return recVars.contains( tree.symbol() ); + case Apply( _, _ ): + case Literal( _ ): case Select(_,_): + case Typed(_,_): return false; default: throw new scalac.ApplicationError("Unexpected pattern "+tree.getClass()); -- cgit v1.2.3