Skip to content

Commit bcf8fea

Browse files
committed
fixup! Move should-fail tests which now fail where they belong
1 parent 82d8315 commit bcf8fea

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

test/should_fail/poly_fail.erl

+4-7
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
use_enum_map1_var/1,
3737
use_enum_map2/1,
3838
use_enum_map3/1,
39-
invariant_tyvar/2
39+
invariant_tyvar2/2
4040
]).
4141

4242
-gradualizer([solve_constraints]).
@@ -250,13 +250,10 @@ use_enum_map3(SomeStruct) ->
250250
%% The type variable `A` in `id_fun_arg/2` is invariant in its result type.
251251
%% Thus, if there are multiple possible substitutions, none of them is minimal.
252252
%% In this case we choose `A = the_lower_bound_of_A | any()' which is a bit
253-
%% lenient in some cases, as shown in invariant_tyvar/2. Hopefully, invariant
253+
%% lenient in some cases, as shown in invariant_tyvar2/2. Hopefully, invariant
254254
%% type variables are very rare.
255255

256-
-spec id_fun_arg(fun ((A) -> B), A) -> {fun ((A) -> B), A}.
257-
id_fun_arg(Fun, Arg) -> {Fun, Arg}.
258-
259-
-spec invariant_tyvar(integer(), boolean()) -> any().
260-
invariant_tyvar(Int, Bool) ->
256+
-spec invariant_tyvar2(integer(), boolean()) -> any().
257+
invariant_tyvar2(Int, Bool) ->
261258
{Fun, _Arg} = id_fun_arg(fun positive/1, Int),
262259
Fun(Bool).

0 commit comments

Comments
 (0)