[erlang-questions] dialyzer: clause guard cannot succeed

Joel Reymont <>
Wed Oct 26 16:35:56 CEST 2011


Any suggestions on what may be wrong here?

I checked the types and they match.

	Thanks, Joel

> gamelib.erl:525: Clause guard cannot succeed.
> 
> 
> In my code gamelib.erl:525 is 
> 
>         %% already sitting at this table
>         OurPlayer ->
>             Game;
>         %% buyin amount outside the range
>         (R#pm_join.buy_in < (Game#game.buyin)#pm_buyin_type.minimum) orelse     <----------- line 525
>         (R#pm_join.buy_in > (Game#game.buyin)#pm_buyin_type.maximum) ->
>             lager:error("attempt to join game ~p with buyin out of range, join event = ~p",
>                         [Game, R]),
>             Game;

--------------------------------------------------------------------------
- for hire: mac osx device driver ninja, kernel extensions and usb drivers
---------------------+------------+---------------------------------------
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
---------------------+------------+---------------------------------------




More information about the erlang-questions mailing list