aboutsummaryrefslogblamecommitdiffstats
path: root/lib/dialyzer/test/opaque_SUITE_data/src/opaque/opaque_bug2.erl
blob: f193a58f59195a820ef3284a7d5c35b5d0c9a7f9 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                       
%%---------------------------------------------------------------------
%% A test for which the analysis gave a bogus warning due to
%% considering the function call name to be of opaque type...
%%---------------------------------------------------------------------

-module(opaque_bug2).

-export([test/0]).

-opaque o() :: 'map'.

test() ->
  lists:map(fun(X) -> X+1 end, [1,2]).