File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 5
5
-type t () :: a | b | c .
6
6
7
7
% % The problem is that the argument type stays the same (as top-level normalization
8
- % % does not expand it) but the result type gets normalized to `a | b | c',
9
- % % and `t() | a' is not a subtype of `a | b | c' because it currently checks whether
10
- % % `t()' is a subtype of one of `a' or `b', or `c' (which it isn 't).
8
+ % % does not expand it) but the result type gets normalized to `a | b | c'.
9
+ % % `t() | a' used not to be a subtype of `a | b | c' because it used to check whether
10
+ % % `t()' was a subtype of one of `a' or `b', or `c' (which it wasn 't).
11
11
12
12
% % It surfaced because, for instance,
13
13
% % type() | any()
14
- % % is not a subtype of
14
+ % % was not a subtype of
15
15
% % type()
16
16
17
17
-spec f (t () | a ) -> t ().
You can’t perform that action at this time.
0 commit comments