Erlang Mailing Lists

Author Message

<  Erlang bugs mailing list  ~  kernel-2.13.3/pg2:get_closest_pid/1 spec is incorrect (R13B0

Guest
Posted: Tue Nov 03, 2009 10:42 pm Reply with quote
Guest
Hello,

In R13B02, pg2:get_closest_pid/1 has an incorrect spec. It says:
(pg2.erl, line 144)

-spec get_closest_pid(term()) -> pid() | {'no_process', term()}
| {'no_such_group', term()}.

It should be:

-spec get_closest_pid(term()) -> pid() | {'error', {'no_process', term
()}}
| {'error', {'no_such_group',
term()}}.

Paul

PS: I wish there was (I knew ?) a way dialyzer could figure these
cases out.
--
Semiocast http://titema.com/
+33.175000290 - 62 bis rue Gay-Lussac, 75005 Paris


________________________________________________________________
erlang-bugs mailing list. See http://www.erlang.org/faq.html
erlang-bugs (at) erlang.org

Post received from mailinglist
Guest
Posted: Tue Nov 03, 2009 11:10 pm Reply with quote
Guest
Paul Guyot wrote:
> Hello,
>
> In R13B02, pg2:get_closest_pid/1 has an incorrect spec. It says:
> (pg2.erl, line 144)
>
> -spec get_closest_pid(term()) -> pid() | {'no_process', term()}
> | {'no_such_group', term()}.
>
> It should be:
>
> -spec get_closest_pid(term()) -> pid() | {'error', {'no_process', term()}}
> | {'error', {'no_such_group',
> term()}}.

Thanks for reporting this one. It will be fixed in the upcoming release.

Kostis

________________________________________________________________
erlang-bugs mailing list. See http://www.erlang.org/faq.html
erlang-bugs (at) erlang.org

Post received from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum