ash-project / spark

Tooling for building DSLs in Elixir
MIT License
105 stars 23 forks source link

fix(CodeHelpers): don't generate duplicate functions. #20

Closed jimsynz closed 1 year ago

jimsynz commented 1 year ago

In the unlikely event that an anonymous or captured function has the same content in two or more locations in the same resource we would end up with the same function being defined more than once in each location causing dialyzer errors downstream.

I cannot think of a way to test this sadly.