aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/test/small_SUITE_data/src/blame_contract_range_suppressed.erl
blob: 8b66d35083b6c213581e0de54f310f7d013efe8f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
%%-----------------------------------------------------------------------
%% Like ./blame_contract_range.erl, but warning is suppressed.
%%-----------------------------------------------------------------------
-module(blame_contract_range_suppressed).

-export([foo/0]).

foo() ->
  bar(b).

-dialyzer({nowarn_function, bar/1}).

-spec bar(atom()) -> a.
bar(a) -> a;
bar(b) -> b.