bb4624af3e
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.