[svn] r5800: nemerle/trunk/ncc/typing/TypedTree.n

malekith svnadmin at nemerle.org
Wed Oct 5 19:32:32 CEST 2005


Log:
Clear true/false literal on each new compilation.

Author: malekith
Date: Wed Oct  5 19:32:31 2005
New Revision: 5800

Modified:
   nemerle/trunk/ncc/typing/TypedTree.n

Modified: nemerle/trunk/ncc/typing/TypedTree.n
==============================================================================
--- nemerle/trunk/ncc/typing/TypedTree.n	(original)
+++ nemerle/trunk/ncc/typing/TypedTree.n	Wed Oct  5 19:32:31 2005
@@ -983,6 +983,14 @@
       if (val) true_literal else false_literal
     }
 
+    static this ()
+    {
+      Passes.OnInit += fun () {
+        true_literal = null;
+        false_literal = null;
+      }
+    }
+
     public static TrueLiteral : TExpr { get { BoolLiteral (true) } }
     public static FalseLiteral : TExpr { get { BoolLiteral (false) } }
   }



More information about the svn mailing list