deep_merge icon indicating copy to clipboard operation
deep_merge copied to clipboard

DeepMerge.deep_merge/3 has invalid spec

Open thomas9911 opened this issue 4 years ago • 1 comments

The spec says that the third argument should be a function with arity two but the examples and in the code a function with arity 3 is used.

current:

@spec deep_merge(map() | keyword(), map() | keyword(), (any(), any() -> any())) :: map() | keyword()

expected:

@spec deep_merge(map() | keyword(), map() | keyword(), (any(), any(), any() -> any())) :: map() | keyword()

thomas9911 avatar Jul 14 '20 13:07 thomas9911

@PragTob Hey, you made a very useful library, but this dialyzer error just doesn't allow me to use it in my project (CI uses dilyzer, so there must be no errors) Any update on this? I can open a PR, if you are ok.

dsnipe avatar Dec 01 '22 15:12 dsnipe