blob: 4e4512157baaaf2cd2593898586df11b62d42b02 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
-module(weird_warning2).
-export([public_func/0]).
-record(a, {d = dict:new() :: dict:dict()}).
-record(b, {q = queue:new() :: queue:queue()}).
public_func() ->
add_element(#a{}, my_key, my_value).
add_element(#a{d = Dict}, Key, Value) ->
dict:store(Key, Value, Dict);
add_element(#b{q = Queue}, Key, Value) ->
queue:in({Key, Value}, Queue).
|