mirror of
https://github.com/valitydev/parse_trans.git
synced 2024-11-06 00:25:16 +00:00
Merge pull request #13 from roland-karlsson-erlang-solutions-com/master
Fixing type problem for '#get-REC'/2
This commit is contained in:
commit
2adfbfcc17
@ -979,7 +979,7 @@ f_get_2(R, Flds, L, Acc) ->
|
||||
[{[t_atom(L, A), t_record(L, R)], T}
|
||||
|| {A, T} <- Types]
|
||||
++ [{[t_list(L, [t_attr(L, R, Acc)]), t_record(L, R)],
|
||||
t_list(L, [t_union(L, [Ts || {_, Ts} <- Types])])}]
|
||||
t_list(L, [t_any(L)])}]
|
||||
),
|
||||
{function, L, FName, 2,
|
||||
[{clause, L, [{var, L, 'Attrs'}, {var, L, 'R'}],
|
||||
|
Loading…
Reference in New Issue
Block a user