You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Module references in typespecs are not included when renaming modules. This causes problems with OTP 22, as specs referencing functions in other modules are no longer permitted. See e.g. OTP-15563 in http://erlang.org/download/otp_src_22.0.readme:
OTP-15563 Application(s): compiler, stdlib
Related Id(s): ERL-845, OTP-15562
Do not allow function specifications for functions
residing in other modules.
Start an Erlang shell and call mock:new(foo, [passthrough])
Expected behavior
mock:new/2 should return ok.
Observed behavior
mock:new/2 throws an exception:
** exception error: {compile_forms,{error,[{"foo.erl",
[{4,erl_lint,{bad_module,{foo,main,0}}}]}],
[]}}
in function meck_proc:start/2
called as meck_proc:start(foo,[passthrough])
Versions
Meck 0.8.12
Erlang/OTP 22.1.8
The text was updated successfully, but these errors were encountered:
Module references in typespecs are not included when renaming modules. This causes problems with OTP 22, as specs referencing functions in other modules are no longer permitted. See e.g. OTP-15563 in http://erlang.org/download/otp_src_22.0.readme:
Reproduction Steps
foo.erl
witherlc +debug_info foo.erl
mock:new(foo, [passthrough])
Expected behavior
mock:new/2
should returnok
.Observed behavior
mock:new/2
throws an exception:Versions
The text was updated successfully, but these errors were encountered: