[svn] r7592: nemerle/trunk/macros/operators.n

VladD2 svnadmin at nemerle.org
Thu Apr 12 06:46:15 CEST 2007


Log:
Replace Message.FatalError() to Message.Error() in "macro @=>". FatalError prevent completion if match case if not well formed.

Author: VladD2
Date: Thu Apr 12 06:46:14 2007
New Revision: 7592

Modified:
   nemerle/trunk/macros/operators.n

Modified: nemerle/trunk/macros/operators.n
==============================================================================
--- nemerle/trunk/macros/operators.n	(original)
+++ nemerle/trunk/macros/operators.n	Thu Apr 12 06:46:14 2007
@@ -182,7 +182,9 @@
       | <[ _ ]> => <[ parameter: $(Util.tmpname ("_") : dyn) ]>
       | <[ $(nm : name) ]> => <[ parameter: $(nm : name) ]>
       | <[ $(nm : name) : $ty ]> => <[ parameter: $(nm : name) : $ty ]>
-      | _ => Message.FatalError (x.loc, $"unsupported syntax for parameter of 'parms => body' lambda expression: $x");
+      | _ =>
+        Message.Error (x.loc, $"unsupported syntax for parameter of 'parms => body' lambda expression: $x");
+        <[ parameter: $(Util.tmpname ("_") : dyn) ]>
     }
 
     def convert_to_ref (x) {



More information about the svn mailing list