[m-dev.] for review: fix bug in record syntax

Fergus Henderson fjh at cs.mu.OZ.AU
Mon May 8 23:10:11 AEST 2000


On 08-May-2000, Simon Taylor <stayl at cs.mu.OZ.AU> wrote:
> 
> My previous bug fix for overloading resolution of field access functions
> and constructors didn't work for existentially typed constructors.
> 
> compiler/post_typecheck.m:
> 	When checking whether a constructor matches a cons_id
> 	and argument types, make sure the actual argument types
> 	don't bind any of the existentially quantified type
> 	variables of the constructor.
> 
> compiler/typecheck.m:
> compiler/type_util.m:
> 	Factor out the code to check whether the argument types
> 	of a call subsume the actual argument types into
> 	a new predicate, `type_util__arg_type_list_subsumes'.
> 
> tests/valid/Mmakefile:
> tests/valid/record_syntax_bug_2.m:
> 	Test case.

That looks good, thanks.

-- 
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.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list