File tree Expand file tree Collapse file tree 7 files changed +27
-16
lines changed
src/main/scala/com/whatsapp/eqwalizer/tc Expand file tree Collapse file tree 7 files changed +27
-16
lines changed Original file line number Diff line number Diff line change @@ -191,6 +191,8 @@ final class ElabPat(pipelineContext: PipelineContext) {
191
191
case _ => (NoneType , env2)
192
192
// $COVERAGE-ON$
193
193
}
194
+ case " >" | " <" | " /=" | " >=" | " =<" | " =/=" | " =:=" | " ==" =>
195
+ (booleanType, env)
194
196
// $COVERAGE-OFF$
195
197
case _ => throw UnhandledOp (binOp.pos, op)
196
198
// $COVERAGE-ON$
Original file line number Diff line number Diff line change 1
1
all funs:
2
- All : 2764
3
- Checkable : 2503
4
- Well-typed checkable : 1610
2
+ All : 2765
3
+ Checkable : 2504
4
+ Well-typed checkable : 1611
5
5
Checkable ratio : 91%
6
6
Health ratio of checkable : 64%
7
7
error count : 892
@@ -26,18 +26,18 @@ generated non-test funs:
26
26
27
27
--------------------------------------------
28
28
non-generated funs:
29
- All : 2764
30
- Checkable : 2503
31
- Well-typed checkable : 1610
29
+ All : 2765
30
+ Checkable : 2504
31
+ Well-typed checkable : 1611
32
32
Checkable ratio : 91%
33
33
Health ratio of checkable : 64%
34
34
error count : 892
35
35
36
36
--------------------------------------------
37
37
non-generated non-test funs (most important):
38
- All : 2762
39
- Checkable : 2501
40
- Well-typed checkable : 1609
38
+ All : 2763
39
+ Checkable : 2502
40
+ Well-typed checkable : 1610
41
41
Checkable ratio : 91%
42
42
Health ratio of checkable : 64%
43
43
error count : 891
Original file line number Diff line number Diff line change @@ -49,5 +49,5 @@ type_aliases:uses_trans_unbound_var/2
49
49
type_aliases:uses_ty_w_unbound_var/2
50
50
type_aliases:uses_ty_w_unbound_var2/0
51
51
Discarded specs: 49
52
- Total specs: 2640
53
- Discarded ratio: 1.8561 %
52
+ Total specs: 2641
53
+ Discarded ratio: 1.8554 %
Original file line number Diff line number Diff line change 2559
2559
"module" : " gradual_misc" ,
2560
2560
"exported_funs" : [
2561
2561
" use_invalid_opaque_1/1" ,
2562
- " use_invalid_opaque_2/1"
2562
+ " use_invalid_opaque_2/1" ,
2563
+ " f/1"
2563
2564
]
2564
2565
},
2565
2566
{
Original file line number Diff line number Diff line change 1
1
all specs:
2
- containing number: 13.32 %
3
- containing integer: 10.51 %
2
+ containing number: 13.31 %
3
+ containing integer: 10.50 %
4
4
containing pos_integer: 3.34%
5
5
containing non_neg_integer: 2.05%
6
6
containing neg_integer: 1.52%
@@ -21,8 +21,8 @@ generated specs:
21
21
containing range: 0.00%
22
22
containing int lit: 0.00%
23
23
non-generated specs:
24
- containing number: 13.32 %
25
- containing integer: 10.51 %
24
+ containing number: 13.31 %
25
+ containing integer: 10.50 %
26
26
containing pos_integer: 3.34%
27
27
containing non_neg_integer: 2.05%
28
28
containing neg_integer: 1.52%
Original file line number Diff line number Diff line change @@ -20,3 +20,7 @@ use_invalid_opaque_1(X) ->
20
20
) -> opaque :contravariant (a ).
21
21
use_invalid_opaque_2 (X ) ->
22
22
X .
23
+
24
+ -spec f (map ()) -> ok .
25
+ f (#{(#{} =/= a ) := _ }) ->
26
+ ok .
Original file line number Diff line number Diff line change @@ -22,3 +22,7 @@ use_invalid_opaque_1(X) -> | |
22
22
) -> opaque:contravariant(a). | |
23
23
use_invalid_opaque_2(X) -> | |
24
24
X. | |
25
+ | |
26
+ -spec f(map()) -> ok. | |
27
+ f(#{(#{} =/= a) := _}) -> | OK |
28
+ ok. | |
You can’t perform that action at this time.
0 commit comments