Function from other module not detecting

Posted by Lethi on Stack Overflow See other posts from Stack Overflow or by Lethi
Published on 2012-11-06T22:41:14Z Indexed on 2012/11/06 23:00 UTC
Read the original article Hit count: 147

Filed under:
|

I two modules in same src folder. mod1 declares function I wish to use in module mod2:

-module(mod1).
-export([myfunc/1]).

myfunc(A) -> {ok}.

In other module I not import mod1:

-module(mod2).

If I do "mod1:" in mod2 it recognizes "myfunc", problem is at run-time when I call mod1:myfunc(A) I get "undefined function mod1:myfunc/1"

I not understand why I get error if intellisense detect my mod1 function in mod2?

© Stack Overflow or respective owner

Related posts about erlang

Related posts about intellisense