Just realized that this is a symptom of a larger problem:
t(X, Y) ->
is_function(X, Y) orelse error.
The function sys_core_fold:is_safe_bool_expr/3 is too optimistic.
--
Anthony Ramine
Le 28 févr. 2014 à 14:05, Ulf Norell <ulf.norell@REDACTED> a écrit :
> -module(bug3).
> f(Rec, Tag) ->
> erlang:is_record(Rec, Tag, 1) orelse error.