Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imported functions are reported as undefined #87

Closed
erszcz opened this issue Nov 16, 2018 · 1 comment
Closed

Imported functions are reported as undefined #87

erszcz opened this issue Nov 16, 2018 · 1 comment
Milestone

Comments

@erszcz
Copy link
Collaborator

erszcz commented Nov 16, 2018

A minimal example is:

-module(a).

-export([p/0]).

-spec p() -> ok.
p() -> ok.
-module(test).

-export([h/0]).

-import(a, [p/0]).

-spec h() -> ok.
h() -> p().

With Gradualizer producing:

test.erl: Call to undefined function p/0 on line 8
@zuiderkwast
Copy link
Collaborator

This is not yet implemented. Thanks for creating the issue for implementing it!

@josefs josefs added this to the Beta release milestone Nov 18, 2018
berbiche pushed a commit to berbiche/Gradualizer that referenced this issue Feb 9, 2021
The -import(...) attribute is handled and remote
functions are looked up when needed. Fixes josefs#87.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants