kernel-2.13.3/pg2:get_closest_pid/1 spec is incorrect (R13B02)

Paul Guyot <>
Tue Nov 3 23:42:21 CET 2009


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



More information about the erlang-bugs mailing list