Commit Graph

3 Commits

Author SHA1 Message Date
Peter Wang
d953a1d17f Collapse equivalences when comparing type_infos for equality.
Branches: main, 10.04

java/runtime/TypeInfo_Struct.java:
        Collapse equivalences when comparing type_infos for equality.

java/runtime/TypeCtorRep.java:
        Duplicate the required constants which otherwise are in
        private_builtin.m.  They should all be moved here but I don't want to
        make that change on the 10.04 branch.

library/rtti_implementation.m:
        Collapse equivalences in type_info_num_functors.

tests/hard_coded/construct_bug.m:
        Use text streams in this test case, as the current hacky implementation
        of `io.write_binary' doesn't work on the Java backend.
2010-09-22 04:11:34 +00:00
Zoltan Somogyi
80bd3ca5b3 Make these tests conform to our style conventions.
Estimated hours taken: 0.1
Branches: main

tests/hard_coded/construct_bug.m:
tests/hard_coded/construct_bug_submodule.m:
tests/hard_coded/typeclasses/complicated_constraint.m:
	Make these tests conform to our style conventions. The old style made
	the code quite hard to read.
2007-12-13 08:40:35 +00:00
Fergus Henderson
931b9a866a Fix a bug reported by Ondrej Bojar (obo [AT] cuni [DOT] cz)
Estimated hours taken: 2.5
Branches: main

Fix a bug reported by Ondrej Bojar (obo [AT] cuni [DOT] cz)
which caused seg faults in io.read_binary.

library/construct.m:
	Expand equivalence types in get_functor/5, get_functor_2/6,
	and construct/4.  This is needed in order to have the proper
	type_info to use when substituting type parameters in the list
	of argument types for the functor.

tests/hard_coded/Mmakefile:
tests/hard_coded/construct_bug.m:
tests/hard_coded/construct_bug.exp:
tests/hard_coded/construct_bug_submodule.m:
	Add a new regression test.
2004-02-16 02:28:09 +00:00