summaryrefslogtreecommitdiff
path: root/sources/scalac/ast
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2004-03-02 12:22:13 +0000
committerpaltherr <paltherr@epfl.ch>2004-03-02 12:22:13 +0000
commit3610314d5c8dd6359d2a052db29b22045383075a (patch)
treeca0fd84c7f99149ed50bb955587ceaa22be9bb17 /sources/scalac/ast
parentc3dad6eaf6fef4130df53a2d70e72e64e3c3e150 (diff)
downloadscala-3610314d5c8dd6359d2a052db29b22045383075a.tar.gz
scala-3610314d5c8dd6359d2a052db29b22045383075a.tar.bz2
scala-3610314d5c8dd6359d2a052db29b22045383075a.zip
- Added missing nextPhase/prevPhase around asse...
- Added missing nextPhase/prevPhase around assertions in mkNewCons
Diffstat (limited to 'sources/scalac/ast')
-rw-r--r--sources/scalac/ast/TreeGen.java2
1 files changed, 2 insertions, 0 deletions
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),