File tree Expand file tree Collapse file tree
testsuite/tests/typing-immediate Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,16 +57,7 @@ module FM_valid : S
5757(* Valid for empty types *)
5858module Empty_valid : S = struct type t = | end ;;
5959[%% expect{|
60- Line 1 , characters 25-46 :
61- 1 | module Empty_valid : S = struct type t = | end ;;
62- ^^^^^^^^^^^^^^^^^^^^^
63- Error : Signature mismatch :
64- Modules do not match : sig type t = | end is not included in S
65- Type declarations do not match :
66- type t = |
67- is not included in
68- type t [@@immediate]
69- The first is not an immediate type.
60+ module Empty_valid : S
7061| }];;
7162
7263(* Practical usage over modules *)
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ let compute_decl env tdecl =
3333 | Type_immediacy. Always -> Type_immediacy. Always_on_64bits
3434 | Type_immediacy. Always_on_64bits | Type_immediacy. Unknown as x -> x
3535 end
36- | (Type_variant ( _ :: _ as cstrs ) , _ ) ->
36+ | (Type_variant cstrs , _ ) ->
3737 if not (List. exists (fun c -> c.Types. cd_args <> Types. Cstr_tuple [] ) cstrs)
3838 then
3939 Type_immediacy. Always
You can’t perform that action at this time.
0 commit comments