ocaml/testsuite/tests/typing-multifile
Florian Angeletti 9f696f0a8e 9218, avoid module/type path collitsion
In presence of -annot, the type printer can be requested to print the
inner path of inline records (i.e "t.A"). Before this commit, the
printing of these paths could trigger a lookup to a module with a
invalid name "t".
If this lookup fails this is fine.
However, if there is a cmi file in the environment sharing the name "t",
the lookup can partially succeed (since cmi are not required to start
with a capital letter) until we compare the module name stored in the
cmi with the requested module name.
Obviously, the valid module name "T" of the cmi cannot match the invalid
module name "t" that was requested, and the cmi reader raises a wrong
module file name error.

This commit avoids this whole process by detecting in the type printer
when we are printing an inlined record type constructor.
2020-01-28 16:30:56 +01:00
..
a.ml Migrate the typing-multifile tests to ocamltest 2018-03-28 10:43:35 +02:00
b.ml Migrate the typing-multifile tests to ocamltest 2018-03-28 10:43:35 +02:00
c.ml Migrate the typing-multifile tests to ocamltest 2018-03-28 10:43:35 +02:00
d.mli Migrate the typing-multifile tests to ocamltest 2018-03-28 10:43:35 +02:00
e.ml Migrate the typing-multifile tests to ocamltest 2018-03-28 10:43:35 +02:00
f.ml Migrate the typing-multifile tests to ocamltest 2018-03-28 10:43:35 +02:00
pr6372.ml Migrate the typing-multifile tests to ocamltest 2018-03-28 10:43:35 +02:00
pr7325.ml Whitespace and overlong line fixes. 2018-06-14 15:15:34 +01:00
pr7563.ml Migrate the typing-multifile tests to ocamltest 2018-03-28 10:43:35 +02:00
pr9218.ml 9218, avoid module/type path collitsion 2020-01-28 16:30:56 +01:00