[svn] r7095: nemerle/trunk/macros/assertions.n

VladD2 svnadmin at nemerle.org
Fri Dec 15 16:27:33 CET 2006


Log:
Fix NotNull macro (prevent change body location).

Author: VladD2
Date: Fri Dec 15 16:27:32 2006
New Revision: 7095

Modified:
   nemerle/trunk/macros/assertions.n

Modified: nemerle/trunk/macros/assertions.n
==============================================================================
--- nemerle/trunk/macros/assertions.n	(original)
+++ nemerle/trunk/macros/assertions.n	Fri Dec 15 16:27:32 2006
@@ -71,6 +71,7 @@
     ]>);
     
     m.Body = newBody;
+    m.Body.loc = loc; // restore IsGenerated to false
   }
 
   /// Example: foo ([Requires (value != 4)] i : int) : void { ... }



More information about the svn mailing list