arjan / decorator

Function decorators for Elixir
MIT License
386 stars 21 forks source link

Add an attribute to module to check if it has already been decorated #34

Closed ryanbjones closed 5 years ago

ryanbjones commented 5 years ago

Prevent separate decorators from calling on_definition each time, which causes duplicate function definitions and throws warnings of previous definitions. This problem also prevents two separate decorator modules from being included if any function in the module has a default value

The unit test will fail to compile without the included changes

Resolves https://github.com/arjan/decorator/issues/33

arjan commented 5 years ago

Thanks so much! I merged my own branch to resolve a conflict.