aboutsummaryrefslogblamecommitdiffstats
path: root/lib/dialyzer/test/small_SUITE_data/src/try1.erl
blob: 05963a16af75b3314ee84b6e57f7c054e84699dc (plain) (tree)
1
2
3
4


                                                                      
                 















                                                                      
       




                    
%%%-------------------------------------------------------------------
%%% File    : try1.erl
%%% Author  :  <[email protected]>
%%% Description :
%%%
%%% Created : 23 Aug 2005 by  <[email protected]>
%%%-------------------------------------------------------------------
-module(try1).

-export([t/1]).

t(X) ->
  case wierd_is_bool(X) of
    true -> ok;
    false -> ok
  end.

wierd_is_bool(X) ->
  try bool(X) of
      Y -> Y
  catch
    _:_  -> false
  end.

bool(true) -> true;
bool(false) -> true.