trivial diff: typecheck.m minor bug fix

Fergus Henderson fjh at cs.mu.oz.au
Thu Dec 4 00:18:48 AEDT 1997


compiler/typecheck.m:
	Fix a couple of small bugs in language_builtin/2 (used for
	printing out error messages): the arity of `\+' and `not'
	is 1, not 2.

Index: typecheck.m
===================================================================
RCS file: /home/staff/zs/imp/mercury/compiler/typecheck.m,v
retrieving revision 1.218
diff -u -u -r1.218 typecheck.m
--- typecheck.m	1997/11/13 06:27:30	1.218
+++ typecheck.m	1997/12/03 13:16:45
@@ -3911,8 +3911,8 @@
 language_builtin("\\=", 2).
 language_builtin(",", 2).
 language_builtin(";", 2).
-language_builtin("\\+", 2).
-language_builtin("not", 2).
+language_builtin("\\+", 1).
+language_builtin("not", 1).
 language_builtin("<=>", 2).
 language_builtin("=>", 2).
 language_builtin("<=", 2).

-- 
Fergus Henderson <fjh at cs.mu.oz.au>   |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>   |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3         |     -- the last words of T. S. Garp.



More information about the developers mailing list