This is an alternative fix to #63.
So the error description is the same, but write down it again
for completeness.
When mock up both behaviour_info and its callback modules,
an error(precisely speaking, a waning) occurs when compiling
a callback module to backup it.
When compiling a callback module, compiler can not find
behaviour_info/1 since it is already mocked away.
If warnings_as_errors exists in compile options,
the warning turns into an error.
This pull request make behaviour_info/1 function always passthoughed
when mocking existing modules (when they have one).
I think this is more neat fix than #63.
But this introduces a little difference in mocking.
This is an alternative fix to #63. So the error description is the same, but write down it again for completeness.
When mock up both behaviour_info and its callback modules, an error(precisely speaking, a waning) occurs when compiling a callback module to backup it.
This pull request make behaviour_info/1 function always passthoughed when mocking existing modules (when they have one). I think this is more neat fix than #63. But this introduces a little difference in mocking.