@@ -703,118 +703,119 @@ let g = A.f
703703 let + () = print_diagnostics poll in
704704 [% expect
705705 {|
706- [ " Add"
707- ; [ [ " directory" ; " $CWD" ]
708- ; [ " id" ; " 0" ]
709- ; [ " loc"
710- ; [ [ " start"
711- ; [ [ " pos_bol" ; " 0" ]
712- ; [ " pos_cnum" ; " 8" ]
713- ; [ " pos_fname" ; " $CWD/foo.ml" ]
714- ; [ " pos_lnum" ; " 11" ]
715- ]
706+ [ " Add"
707+ ; [ [ " directory" ; " $CWD" ]
708+ ; [ " id" ; " 0" ]
709+ ; [ " loc"
710+ ; [ [ " start"
711+ ; [ [ " pos_bol" ; " 0" ]
712+ ; [ " pos_cnum" ; " 8" ]
713+ ; [ " pos_fname" ; " $CWD/foo.ml" ]
714+ ; [ " pos_lnum" ; " 11" ]
716715 ]
717- ; [ " stop "
718- ; [ [ " pos_bol " ; " 0 " ]
719- ; [ " pos_cnum " ; " 11 " ]
720- ; [ " pos_fname " ; " $CWD/foo.ml " ]
721- ; [ " pos_lnum " ; " 11 " ]
722- ]
716+ ]
717+ ; [ " stop "
718+ ; [ [ " pos_bol " ; " 0 " ]
719+ ; [ " pos_cnum " ; " 11 " ]
720+ ; [ " pos_fname " ; " $CWD/foo.ml " ]
721+ ; [ " pos_lnum " ; " 11 " ]
723722 ]
724723 ]
725724 ]
726- ; [ " message" ; [ " Verbatim" ; " foobar\n \
727- " ] ]
728- ; [ " promotion" ; [] ]
729- ; [ " related" ; [] ]
730- ; [ " severity" ; " error" ]
731- ; [ " targets" ; [] ]
732725 ]
726+ ; [ " message" ; [ " Verbatim" ; " foobar\n \
727+ " ] ]
728+ ; [ " promotion" ; [] ]
729+ ; [ " related" ; [] ]
730+ ; [ " severity" ; " alert" ]
731+ ; [ " targets" ; [] ]
733732 ]
734- [ " Add "
735- ; [ [ " directory " ; " $CWD " ]
736- ; [ " id " ; " 1 " ]
737- ; [ " loc "
738- ; [ [ " start "
739- ; [ [ " pos_bol " ; " 0 " ]
740- ; [ " pos_cnum " ; " 8 " ]
741- ; [ " pos_fname " ; " $CWD/foo.ml " ]
742- ; [ " pos_lnum " ; " 12 " ]
743- ]
733+ ]
734+ [ " Add "
735+ ; [ [ " directory " ; " $CWD " ]
736+ ; [ " id " ; " 1 " ]
737+ ; [ " loc "
738+ ; [ [ " start "
739+ ; [ [ " pos_bol " ; " 0 " ]
740+ ; [ " pos_cnum " ; " 8 " ]
741+ ; [ " pos_fname " ; " $CWD/foo.ml " ]
742+ ; [ " pos_lnum " ; " 12 " ]
744743 ]
745- ; [ " stop "
746- ; [ [ " pos_bol " ; " 0 " ]
747- ; [ " pos_cnum " ; " 11 " ]
748- ; [ " pos_fname " ; " $CWD/foo.ml " ]
749- ; [ " pos_lnum " ; " 12 " ]
750- ]
744+ ]
745+ ; [ " stop "
746+ ; [ [ " pos_bol " ; " 0 " ]
747+ ; [ " pos_cnum " ; " 11 " ]
748+ ; [ " pos_fname " ; " $CWD/foo.ml " ]
749+ ; [ " pos_lnum " ; " 12 " ]
751750 ]
752751 ]
753752 ]
754- ; [ " message" ; [ " Verbatim" ; " foobar\n \
755- " ] ]
756- ; [ " promotion" ; [] ]
757- ; [ " related" ; [] ]
758- ; [ " severity" ; " error" ]
759- ; [ " targets" ; [] ]
760753 ]
754+ ; [ " message" ; [ " Verbatim" ; " foobar\n \
755+ " ] ]
756+ ; [ " promotion" ; [] ]
757+ ; [ " related" ; [] ]
758+ ; [ " severity" ; " alert" ]
759+ ; [ " targets" ; [] ]
761760 ]
762- [ " Add "
763- ; [ [ " directory " ; " $CWD " ]
764- ; [ " id " ; " 2 " ]
765- ; [ " loc "
766- ; [ [ " start "
767- ; [ [ " pos_bol " ; " 0 " ]
768- ; [ " pos_cnum " ; " 4 " ]
769- ; [ " pos_fname " ; " $CWD/foo.ml " ]
770- ; [ " pos_lnum " ; " 11 " ]
771- ]
761+ ]
762+ [ " Add "
763+ ; [ [ " directory " ; " $CWD " ]
764+ ; [ " id " ; " 2 " ]
765+ ; [ " loc "
766+ ; [ [ " start "
767+ ; [ [ " pos_bol " ; " 0 " ]
768+ ; [ " pos_cnum " ; " 4 " ]
769+ ; [ " pos_fname " ; " $CWD/foo.ml " ]
770+ ; [ " pos_lnum " ; " 11 " ]
772771 ]
773- ; [ " stop "
774- ; [ [ " pos_bol " ; " 0 " ]
775- ; [ " pos_cnum " ; " 5 " ]
776- ; [ " pos_fname " ; " $CWD/foo.ml " ]
777- ; [ " pos_lnum " ; " 11 " ]
778- ]
772+ ]
773+ ; [ " stop "
774+ ; [ [ " pos_bol " ; " 0 " ]
775+ ; [ " pos_cnum " ; " 5 " ]
776+ ; [ " pos_fname " ; " $CWD/foo.ml " ]
777+ ; [ " pos_lnum " ; " 11 " ]
779778 ]
780779 ]
781780 ]
782- ; [ " message" ; [ " Verbatim" ; " unused value f.\n \
783- " ] ]
784- ; [ " promotion" ; [] ]
785- ; [ " related" ; [] ]
786- ; [ " severity" ; " error" ]
787- ; [ " targets" ; [] ]
788781 ]
782+ ; [ " message" ; [ " Verbatim" ; " unused value f.\n \
783+ " ] ]
784+ ; [ " promotion" ; [] ]
785+ ; [ " related" ; [] ]
786+ ; [ " severity" ; " error" ]
787+ ; [ " targets" ; [] ]
789788 ]
790- [ " Add "
791- ; [ [ " directory " ; " $CWD " ]
792- ; [ " id " ; " 3 " ]
793- ; [ " loc "
794- ; [ [ " start "
795- ; [ [ " pos_bol " ; " 0 " ]
796- ; [ " pos_cnum " ; " 4 " ]
797- ; [ " pos_fname " ; " $CWD/foo.ml " ]
798- ; [ " pos_lnum " ; " 12 " ]
799- ]
789+ ]
790+ [ " Add "
791+ ; [ [ " directory " ; " $CWD " ]
792+ ; [ " id " ; " 3 " ]
793+ ; [ " loc "
794+ ; [ [ " start "
795+ ; [ [ " pos_bol " ; " 0 " ]
796+ ; [ " pos_cnum " ; " 4 " ]
797+ ; [ " pos_fname " ; " $CWD/foo.ml " ]
798+ ; [ " pos_lnum " ; " 12 " ]
800799 ]
801- ; [ " stop "
802- ; [ [ " pos_bol " ; " 0 " ]
803- ; [ " pos_cnum " ; " 5 " ]
804- ; [ " pos_fname " ; " $CWD/foo.ml " ]
805- ; [ " pos_lnum " ; " 12 " ]
806- ]
800+ ]
801+ ; [ " stop "
802+ ; [ [ " pos_bol " ; " 0 " ]
803+ ; [ " pos_cnum " ; " 5 " ]
804+ ; [ " pos_fname " ; " $CWD/foo.ml " ]
805+ ; [ " pos_lnum " ; " 12 " ]
807806 ]
808807 ]
809808 ]
810- ; [ " message" ; [ " Verbatim" ; " unused value g.\n \
811- " ] ]
812- ; [ " promotion" ; [] ]
813- ; [ " related" ; [] ]
814- ; [ " severity" ; " error" ]
815- ; [ " targets" ; [] ]
816809 ]
817- ] | }])
810+ ; [ " message" ; [ " Verbatim" ; " unused value g.\n \
811+ " ] ]
812+ ; [ " promotion" ; [] ]
813+ ; [ " related" ; [] ]
814+ ; [ " severity" ; " error" ]
815+ ; [ " targets" ; [] ]
816+ ]
817+ ]
818+ | }])
818819;;
819820
820821let % expect_test " cyclic dependency error simple" =
0 commit comments