arjan/decorator

Not working correctly when used for function with different arities

ludwikbukowski opened this issue · 2 comments

Example:

  @decorate function_result(:ok)
  def testfun(a,b) do a + b end
  @decorate function_result(:ok)
  def testfun(a) do a end

Will compile with a warning:

warning: this clause cannot match because a previous clause at line XX always matches

Example test:
#20

It has been fixed in #20

arjan commented

Merged, thanks!