Skip to content
This repository has been archived by the owner on Oct 4, 2019. It is now read-only.

Commit

Permalink
sheriff: code added for avoiding errors with dialyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
M committed Oct 22, 2011
1 parent b469fbf commit e383751
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/sheriff.erl
Expand Up @@ -14,7 +14,13 @@
%% OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

-module(sheriff).
-export([parse_transform/2]).
-export([parse_transform/2,check/2]).

% This function is not supposed to be called.
% It is just for dialyzer's code testing
-spec check(any(),any())-> true | false.
check("Sheriff_$_test : Hello","World")->true;
check(_,_)->false.

-type form() :: any().
-type forms() :: [form()].
Expand Down

0 comments on commit e383751

Please sign in to comment.