From 9694f34a4fe06a5d3de484e8f83764ed89455256 Mon Sep 17 00:00:00 2001 From: Kian-Meng Ang Date: Wed, 2 Feb 2022 18:06:47 +0800 Subject: [PATCH] Group functions by arity This fixed warning below: warning: clauses with the same name and arity (number of arguments) should be grouped together, "def fun1/1" was previously defined (test/decorate_all_test.exs:50) test/decorate_all_test.exs:54 --- test/decorate_all_test.exs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/decorate_all_test.exs b/test/decorate_all_test.exs index c6177d4..2e006b4 100644 --- a/test/decorate_all_test.exs +++ b/test/decorate_all_test.exs @@ -48,10 +48,9 @@ defmodule DecoratorDecorateAllTest.Fixture.MyModuleWithSeparatedClauses do @decorate_all some_decorator() def fun1(0), do: :zero + def fun1(x), do: x def fun2(x), do: x + 2 - - def fun1(x), do: x end defmodule DecoratorDecorateAllTest do