aboutsummaryrefslogblamecommitdiffstats
path: root/lib/dialyzer/test/map_SUITE_data/src/opaque_bif.erl
blob: 40214a18872ec22cdc5346a64973b7317126a3bd (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                       
-module(opaque_bif).
-export([o1/1]).
-export_type([opaque_any_map/0]).
-opaque opaque_any_map() :: map().

%% ERL-249: A bug with opaque arguments to maps:merge/2
%% Reported by Felipe Ripoll on 6/9/2016
-spec o1(opaque_any_map()) -> opaque_any_map().
o1(Map) ->
    maps:merge(o1_c(), Map).

-spec o1_c() -> opaque_any_map().
o1_c() -> #{}.