From 3610314d5c8dd6359d2a052db29b22045383075a Mon Sep 17 00:00:00 2001 From: paltherr Date: Tue, 2 Mar 2004 12:22:13 +0000 Subject: - Added missing nextPhase/prevPhase around asse... - Added missing nextPhase/prevPhase around assertions in mkNewCons --- sources/scalac/ast/TreeGen.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sources/scalac/ast') diff --git a/sources/scalac/ast/TreeGen.java b/sources/scalac/ast/TreeGen.java index b6ef16a424..c832aca543 100644 --- a/sources/scalac/ast/TreeGen.java +++ b/sources/scalac/ast/TreeGen.java @@ -735,10 +735,12 @@ public class TreeGen implements Kinds, Modifiers, TypeTags { /** Builds a list with given element type, head and tail. */ public Tree mkNewCons(int pos, Type element, Tree head, Tree tail) { // !!! these checks can be removed once they are done in Apply + global.nextPhase(); assert head.type().isSubType(element): element + " -- " + head + " : " + head.type; assert tail.type().isSubType(definitions.LIST_TYPE(element)): element + " -- " + tail + " : " + tail.type; + global.prevPhase(); return New( mkApplyTV( mkPrimaryConstructorGlobalRef(pos, definitions.CONS_CLASS), -- cgit v1.2.3