blob: 17c3acd6af19239eff7d6870b315c31b612b533d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
-module(maps_redundant_branch_is_key).
-export([test/0]).
test() ->
ok = thingy(#{a => 1}),
ok = thingy(#{a => 2}),
ok.
thingy(Map) ->
try
#{a := _} = Map,
ok
catch _ -> error
end.
|