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
More specifically, asdf versions elixir 1.13.4-otp-25 and erlang 25.0.1
Which version of Dialyxir are you using? (cat mix.lock | grep dialyxir): 1.1.0
Current behavior
This code:
name
|> :ets.whereis()
|> is_reference()
produces
# lib/dialyzer_ets_error.ex:7:no_return
# Function table_exists?/1 has no local return.
# ________________________________________________________________________________
# Please file a bug in https://github.com/jeremyjh/dialyxir/issues with this message.
#
# Unknown error occurred: %FunctionClauseError{args: nil, arity: 1, clauses: nil, function: :format_long, kind: nil, module: Dialyxir.Warnings.OpaqueTypeTest}
#
#
# Legacy warning:
# lib/dialyzer_ets_error.ex:9: The type test is_reference('undefined' | ets:tid()) breaks the opacity of the term 'undefined' | ets:tid()
I think this is because of
# `-opaque tid() :: reference().`
# in https://github.com/erlang/otp/blob/8e62b1781a8083301aae272162946414d9af4906/lib/stdlib/src/ets.erl#L57
Environment
Elixir 1.13.4 (compiled with Erlang/OTP 25)
More specifically,
asdf
versionselixir 1.13.4-otp-25
anderlang 25.0.1
Current behavior
This code:
produces
I think this is because of
A minimal demo project is here
Expected behavior
It should produce a clear warning
The text was updated successfully, but these errors were encountered: