Closed jjl closed 6 years ago
Hmm, do you have an example? I added functions that weren't in the protocol to my implementation tests and they worked fine so it is probably some specific syntax that I need to fix up. :-)
Actually I might have found it, the issue is that I'm guessing that you are creating an argumentless function definition (def blah, do: ...
instead of def blah(), do:
)? The formatter would fix that to have parenthesis as the lack there-of is considered poor form according to the syntax standards. However it looks like an easy fix, thus it should be fixed in 0.3.25
if you want to try it? :-)
I'm not sure where this release is (not in hex, nor in a tag called "0.3.25'), but master passes.
It is, I just forgot to hit Y
so it took a while to go through. ^.^;
0.3.26 is out now too with support for printing the protocol source (see readme for a caveat) as requested by @jjl too!
Using a
def
that doesn't exist in the protocol gives me this rather unintuitive error:Line 4 is the defimpl_ex line. I can make them defp, but it'd be nice for my tests if I could see them and putting them in another module seems a bit overkill