Skip to content

Gradualizer can't tell that m and f don't exist in erlang:apply(m, f, [some, args]) #561

@erszcz

Description

@erszcz

Reported by @aleklisi on erlanger.slack.com. Here's how to reproduce.

Create a new library:

r3 new lib name=mylib

Within it create the following module:

$ cd mylib
$ cat src/z.erl
-module(z).

f() ->
    erlang:apply(m, f, [1,2,3]).

Add Gradualizer as a Rebar3 plugin and run:

rebar3 gradualizer

Compare with:

rebar3 xref

The latter returns info that m and f don't exist, but Gradualizer doesn't.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions