aboutsummaryrefslogblamecommitdiffstats
path: root/lib/dialyzer/test/opaque_SUITE_data/src/zoltan_kis2.erl
blob: 38c6051c588100b1da42fc9f7bcd0d8649f0cc0f (plain) (tree)
1
2
3
4
5
6
7
8
9








                                    
                                          


                                    
      
-module(zoltan_kis2).

-export([get/2]).

-opaque data() :: gb_tree().

-spec get(term(), data()) -> term().

get(Key, Data) ->
  %% Should unopaque data for remote calls
  case gb_trees:lookup(Key, Data) of
    'none' -> 'undefined';
    {'value', Val} -> Val
  end.