[svn] r7543: nemerle/trunk/lib/core.n

divan svnadmin at nemerle.org
Tue Mar 20 08:59:00 CET 2007


Log:
Prevent calling base c-tor twice in AssertionException c-tor.

Author: divan
Date: Tue Mar 20 08:58:59 2007
New Revision: 7543

Modified:
   nemerle/trunk/lib/core.n

Modified: nemerle/trunk/lib/core.n
==============================================================================
--- nemerle/trunk/lib/core.n	(original)
+++ nemerle/trunk/lib/core.n	Tue Mar 20 08:58:59 2007
@@ -38,10 +38,8 @@
       def cond = if (cond != "") " ``" + cond + "''" else "";
       def m = "assertion" + cond + " failed in file " + file + ", line " 
               + line.ToString ();
-      if (msg != "")
-        base (m + ":\n" + msg)
-      else
-        base (m)
+      def m = if (msg != "") m + ":\n" + msg else m;
+      base (m);
     }
   }
 



More information about the svn mailing list